function dy(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Sr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mf={exports:{}},ns={},jf={exports:{}},F={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ko=Symbol.for("react.element"),fy=Symbol.for("react.portal"),py=Symbol.for("react.fragment"),hy=Symbol.for("react.strict_mode"),my=Symbol.for("react.profiler"),gy=Symbol.for("react.provider"),yy=Symbol.for("react.context"),vy=Symbol.for("react.forward_ref"),xy=Symbol.for("react.suspense"),wy=Symbol.for("react.memo"),Sy=Symbol.for("react.lazy"),rc=Symbol.iterator;function Ty(e){return e===null||typeof e!="object"?null:(e=rc&&e[rc]||e["@@iterator"],typeof e=="function"?e:null)}var Lf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_f=Object.assign,Of={};function Tr(e,t,n){this.props=e,this.context=t,this.refs=Of,this.updater=n||Lf}Tr.prototype.isReactComponent={};Tr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Tr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Df(){}Df.prototype=Tr.prototype;function _l(e,t,n){this.props=e,this.context=t,this.refs=Of,this.updater=n||Lf}var Ol=_l.prototype=new Df;Ol.constructor=_l;_f(Ol,Tr.prototype);Ol.isPureReactComponent=!0;var oc=Array.isArray,If=Object.prototype.hasOwnProperty,Dl={current:null},Vf={key:!0,ref:!0,__self:!0,__source:!0};function Ff(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)If.call(t,r)&&!Vf.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,U=N[_];if(0>>1;_o(zn,I))Beo(fn,zn)?(N[_]=fn,N[Be]=I,_=Be):(N[_]=zn,N[ze]=I,_=ze);else if(Beo(fn,I))N[_]=fn,N[Be]=I,_=Be;else break e}}return L}function o(N,L){var I=N.sortIndex-L.sortIndex;return I!==0?I:N.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,x=!1,y=!1,T=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(N){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=N)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function S(N){if(y=!1,m(N),!x)if(n(l)!==null)x=!0,B(C);else{var L=n(u);L!==null&&ce(S,L.startTime-N)}}function C(N,L){x=!1,y&&(y=!1,g(k),k=-1),h=!0;var I=f;try{for(m(L),d=n(l);d!==null&&(!(d.expirationTime>L)||N&&!H());){var _=d.callback;if(typeof _=="function"){d.callback=null,f=d.priorityLevel;var U=_(d.expirationTime<=L);L=e.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&r(l),m(L)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var ze=n(u);ze!==null&&ce(S,ze.startTime-L),G=!1}return G}finally{d=null,f=I,h=!1}}var P=!1,E=null,k=-1,b=5,M=-1;function H(){return!(e.unstable_now()-MN||125_?(N.sortIndex=I,t(u,N),n(l)===null&&N===n(u)&&(y?(g(k),k=-1):y=!0,ce(S,I-_))):(N.sortIndex=U,t(l,N),x||h||(x=!0,B(C))),N},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(N){var L=f;return function(){var I=f;f=L;try{return N.apply(this,arguments)}finally{f=I}}}})(Hf);$f.exports=Hf;var _y=$f.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Oy=w,Ge=_y;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xa=Object.prototype.hasOwnProperty,Dy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,sc={},ac={};function Iy(e){return xa.call(ac,e)?!0:xa.call(sc,e)?!1:Dy.test(e)?ac[e]=!0:(sc[e]=!0,!1)}function Vy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Fy(e,t,n,r){if(t===null||typeof t>"u"||Vy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function je(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Se[e]=new je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Se[t]=new je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Se[e]=new je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Se[e]=new je(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Se[e]=new je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Se[e]=new je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Se[e]=new je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Se[e]=new je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Se[e]=new je(e,5,!1,e.toLowerCase(),null,!1,!1)});var Vl=/[\-:]([a-z])/g;function Fl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Vl,Fl);Se[t]=new je(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Vl,Fl);Se[t]=new je(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Vl,Fl);Se[t]=new je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Se[e]=new je(e,1,!1,e.toLowerCase(),null,!1,!1)});Se.xlinkHref=new je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Se[e]=new je(e,1,!1,e.toLowerCase(),null,!0,!0)});function zl(e,t,n,r){var o=Se.hasOwnProperty(t)?Se[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ms=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fr(e):""}function zy(e){switch(e.tag){case 5:return Fr(e.type);case 16:return Fr("Lazy");case 13:return Fr("Suspense");case 19:return Fr("SuspenseList");case 0:case 2:case 15:return e=js(e.type,!1),e;case 11:return e=js(e.type.render,!1),e;case 1:return e=js(e.type,!0),e;default:return""}}function Ca(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Hn:return"Fragment";case $n:return"Portal";case wa:return"Profiler";case Bl:return"StrictMode";case Sa:return"Suspense";case Ta:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Kf:return(e.displayName||"Context")+".Consumer";case Gf:return(e._context.displayName||"Context")+".Provider";case Ul:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $l:return t=e.displayName||null,t!==null?t:Ca(e.type)||"Memo";case zt:t=e._payload,e=e._init;try{return Ca(e(t))}catch{}}return null}function By(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ca(t);case 8:return t===Bl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uy(e){var t=Yf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fo(e){e._valueTracker||(e._valueTracker=Uy(e))}function Xf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ti(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ea(e,t){var n=t.checked;return ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function uc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function qf(e,t){t=t.checked,t!=null&&zl(e,"checked",t,!1)}function Pa(e,t){qf(e,t);var n=rn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ka(e,t.type,n):t.hasOwnProperty("defaultValue")&&ka(e,t.type,rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ka(e,t,n){(t!=="number"||Ti(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zr=Array.isArray;function ir(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=zo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function oo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$y=["Webkit","ms","Moz","O"];Object.keys(Hr).forEach(function(e){$y.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hr[t]=Hr[e]})});function tp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hr.hasOwnProperty(e)&&Hr[e]?(""+t).trim():t+"px"}function np(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=tp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Hy=ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ra(e,t){if(t){if(Hy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function ba(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ma=null;function Hl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ja=null,sr=null,ar=null;function pc(e){if(e=Ro(e)){if(typeof ja!="function")throw Error(A(280));var t=e.stateNode;t&&(t=as(t),ja(e.stateNode,e.type,t))}}function rp(e){sr?ar?ar.push(e):ar=[e]:sr=e}function op(){if(sr){var e=sr,t=ar;if(ar=sr=null,pc(e),t)for(e=0;e>>=0,e===0?32:31-(tv(e)/nv|0)|0}var Bo=64,Uo=4194304;function Br(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ki(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Br(a):(i&=s,i!==0&&(r=Br(i)))}else s=n&~o,s!==0?r=Br(s):i!==0&&(r=Br(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ao(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ct(t),e[t]=n}function sv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Gr),Tc=String.fromCharCode(32),Cc=!1;function Ep(e,t){switch(e){case"keyup":return _v.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wn=!1;function Dv(e,t){switch(e){case"compositionend":return Pp(t);case"keypress":return t.which!==32?null:(Cc=!0,Tc);case"textInput":return e=t.data,e===Tc&&Cc?null:e;default:return null}}function Iv(e,t){if(Wn)return e==="compositionend"||!Zl&&Ep(e,t)?(e=Tp(),ci=Yl=Wt=null,Wn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ac(n)}}function Rp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bp(){for(var e=window,t=Ti();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ti(e.document)}return t}function Jl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Gv(e){var t=bp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rp(n.ownerDocument.documentElement,n)){if(r!==null&&Jl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Nc(n,i);var s=Nc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Gn=null,Va=null,Qr=null,Fa=!1;function Rc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fa||Gn==null||Gn!==Ti(r)||(r=Gn,"selectionStart"in r&&Jl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Qr&&co(Qr,r)||(Qr=r,r=Ri(Va,"onSelect"),0Yn||(e.current=Wa[Yn],Wa[Yn]=null,Yn--)}function K(e,t){Yn++,Wa[Yn]=e.current,e.current=t}var on={},ke=un(on),De=un(!1),Nn=on;function pr(e,t){var n=e.type.contextTypes;if(!n)return on;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ie(e){return e=e.childContextTypes,e!=null}function Mi(){q(De),q(ke)}function Dc(e,t,n){if(ke.current!==on)throw Error(A(168));K(ke,t),K(De,n)}function Fp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(A(108,By(e)||"Unknown",o));return ae({},n,r)}function ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||on,Nn=ke.current,K(ke,e),K(De,De.current),!0}function Ic(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Fp(e,t,Nn),r.__reactInternalMemoizedMergedChildContext=e,q(De),q(ke),K(ke,e)):q(De),K(De,n)}var Ct=null,ls=!1,Gs=!1;function zp(e){Ct===null?Ct=[e]:Ct.push(e)}function o0(e){ls=!0,zp(e)}function cn(){if(!Gs&&Ct!==null){Gs=!0;var e=0,t=W;try{var n=Ct;for(W=1;e>=s,o-=s,Et=1<<32-ct(t)+o|n<k?(b=E,E=null):b=E.sibling;var M=f(g,E,m[k],S);if(M===null){E===null&&(E=b);break}e&&E&&M.alternate===null&&t(g,E),p=i(M,p,k),P===null?C=M:P.sibling=M,P=M,E=b}if(k===m.length)return n(g,E),ne&&mn(g,k),C;if(E===null){for(;kk?(b=E,E=null):b=E.sibling;var H=f(g,E,M.value,S);if(H===null){E===null&&(E=b);break}e&&E&&H.alternate===null&&t(g,E),p=i(H,p,k),P===null?C=H:P.sibling=H,P=H,E=b}if(M.done)return n(g,E),ne&&mn(g,k),C;if(E===null){for(;!M.done;k++,M=m.next())M=d(g,M.value,S),M!==null&&(p=i(M,p,k),P===null?C=M:P.sibling=M,P=M);return ne&&mn(g,k),C}for(E=r(g,E);!M.done;k++,M=m.next())M=h(E,g,k,M.value,S),M!==null&&(e&&M.alternate!==null&&E.delete(M.key===null?k:M.key),p=i(M,p,k),P===null?C=M:P.sibling=M,P=M);return e&&E.forEach(function(O){return t(g,O)}),ne&&mn(g,k),C}function T(g,p,m,S){if(typeof m=="object"&&m!==null&&m.type===Hn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Vo:e:{for(var C=m.key,P=p;P!==null;){if(P.key===C){if(C=m.type,C===Hn){if(P.tag===7){n(g,P.sibling),p=o(P,m.props.children),p.return=g,g=p;break e}}else if(P.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===zt&&zc(C)===P.type){n(g,P.sibling),p=o(P,m.props),p.ref=br(g,P,m),p.return=g,g=p;break e}n(g,P);break}else t(g,P);P=P.sibling}m.type===Hn?(p=kn(m.props.children,g.mode,S,m.key),p.return=g,g=p):(S=vi(m.type,m.key,m.props,null,g.mode,S),S.ref=br(g,p,m),S.return=g,g=S)}return s(g);case $n:e:{for(P=m.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(g,p.sibling),p=o(p,m.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=ea(m,g.mode,S),p.return=g,g=p}return s(g);case zt:return P=m._init,T(g,p,P(m._payload),S)}if(zr(m))return x(g,p,m,S);if(Pr(m))return y(g,p,m,S);Yo(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,m),p.return=g,g=p):(n(g,p),p=Js(m,g.mode,S),p.return=g,g=p),s(g)):n(g,p)}return T}var mr=Hp(!0),Wp=Hp(!1),Oi=un(null),Di=null,Zn=null,ru=null;function ou(){ru=Zn=Di=null}function iu(e){var t=Oi.current;q(Oi),e._currentValue=t}function Qa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ur(e,t){Di=e,ru=Zn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Oe=!0),e.firstContext=null)}function nt(e){var t=e._currentValue;if(ru!==e)if(e={context:e,memoizedValue:t,next:null},Zn===null){if(Di===null)throw Error(A(308));Zn=e,Di.dependencies={lanes:0,firstContext:e}}else Zn=Zn.next=e;return t}var Sn=null;function su(e){Sn===null?Sn=[e]:Sn.push(e)}function Gp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,su(t)):(n.next=o.next,o.next=n),t.interleaved=n,Lt(e,r)}function Lt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Bt=!1;function au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Kp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Nt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Lt(e,n)}return o=r.interleaved,o===null?(t.next=t,su(r)):(t.next=o.next,o.next=t),r.interleaved=t,Lt(e,n)}function fi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gl(e,n)}}function Bc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ii(e,t,n,r){var o=e.updateQueue;Bt=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,h=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,y=a;switch(f=t,h=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){d=x.call(h,d,f);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,f=typeof x=="function"?x.call(h,d,f):x,f==null)break e;d=ae({},d,f);break e;case 2:Bt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Mn|=s,e.lanes=s,e.memoizedState=d}}function Uc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Qs.transition;Qs.transition={};try{e(!1),t()}finally{W=n,Qs.transition=r}}function ch(){return rt().memoizedState}function l0(e,t,n){var r=Jt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},dh(e))fh(t,n);else if(n=Gp(e,t,n,r),n!==null){var o=be();dt(n,e,r,o),ph(n,t,r)}}function u0(e,t,n){var r=Jt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(dh(e))fh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,ft(a,s)){var l=t.interleaved;l===null?(o.next=o,su(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Gp(e,t,o,r),n!==null&&(o=be(),dt(n,e,r,o),ph(n,t,r))}}function dh(e){var t=e.alternate;return e===se||t!==null&&t===se}function fh(e,t){Yr=Fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ph(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gl(e,n)}}var zi={readContext:nt,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},c0={readContext:nt,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:Hc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,hi(4194308,4,ih.bind(null,t,e),n)},useLayoutEffect:function(e,t){return hi(4194308,4,e,t)},useInsertionEffect:function(e,t){return hi(4,2,e,t)},useMemo:function(e,t){var n=mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=mt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=l0.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:$c,useDebugValue:mu,useDeferredValue:function(e){return mt().memoizedState=e},useTransition:function(){var e=$c(!1),t=e[0];return e=a0.bind(null,e[1]),mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,o=mt();if(ne){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),ye===null)throw Error(A(349));bn&30||qp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Hc(Jp.bind(null,r,i,e),[e]),r.flags|=2048,xo(9,Zp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=mt(),t=ye.identifierPrefix;if(ne){var n=Pt,r=Et;n=(r&~(1<<32-ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[gt]=t,e[ho]=r,Ch(e,t,!1,!1),t.stateNode=e;e:{switch(s=ba(n,r),n){case"dialog":X("cancel",e),X("close",e),o=r;break;case"iframe":case"object":case"embed":X("load",e),o=r;break;case"video":case"audio":for(o=0;ovr&&(t.flags|=128,r=!0,Mr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Vi(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ne)return Ce(t),null}else 2*de()-i.renderingStartTime>vr&&n!==1073741824&&(t.flags|=128,r=!0,Mr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=de(),t.sibling=null,n=oe.current,K(oe,r?n&1|2:n&1),t):(Ce(t),null);case 22:case 23:return Su(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ue&1073741824&&(Ce(t),t.subtreeFlags&6&&(t.flags|=8192)):Ce(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function v0(e,t){switch(tu(t),t.tag){case 1:return Ie(t.type)&&Mi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gr(),q(De),q(ke),cu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uu(t),null;case 13:if(q(oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));hr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(oe),null;case 4:return gr(),null;case 10:return iu(t.type._context),null;case 22:case 23:return Su(),null;case 24:return null;default:return null}}var qo=!1,Pe=!1,x0=typeof WeakSet=="function"?WeakSet:Set,R=null;function Jn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){le(e,t,r)}else n.current=null}function rl(e,t,n){try{n()}catch(r){le(e,t,r)}}var td=!1;function w0(e,t){if(za=Ai,e=bp(),Jl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ba={focusedElem:e,selectionRange:n},Ai=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,T=x.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:st(t.type,y),T);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(S){le(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return x=td,td=!1,x}function Xr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&rl(t,n,i)}o=o.next}while(o!==r)}}function ds(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kh(e){var t=e.alternate;t!==null&&(e.alternate=null,kh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gt],delete t[ho],delete t[Ha],delete t[n0],delete t[r0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ah(e){return e.tag===5||e.tag===3||e.tag===4}function nd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ah(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function il(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bi));else if(r!==4&&(e=e.child,e!==null))for(il(e,t,n),e=e.sibling;e!==null;)il(e,t,n),e=e.sibling}function sl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(sl(e,t,n),e=e.sibling;e!==null;)sl(e,t,n),e=e.sibling}var xe=null,at=!1;function It(e,t,n){for(n=n.child;n!==null;)Nh(e,t,n),n=n.sibling}function Nh(e,t,n){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(rs,n)}catch{}switch(n.tag){case 5:Pe||Jn(n,t);case 6:var r=xe,o=at;xe=null,It(e,t,n),xe=r,at=o,xe!==null&&(at?(e=xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xe.removeChild(n.stateNode));break;case 18:xe!==null&&(at?(e=xe,n=n.stateNode,e.nodeType===8?Ws(e.parentNode,n):e.nodeType===1&&Ws(e,n),lo(e)):Ws(xe,n.stateNode));break;case 4:r=xe,o=at,xe=n.stateNode.containerInfo,at=!0,It(e,t,n),xe=r,at=o;break;case 0:case 11:case 14:case 15:if(!Pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&rl(n,t,s),o=o.next}while(o!==r)}It(e,t,n);break;case 1:if(!Pe&&(Jn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){le(n,t,a)}It(e,t,n);break;case 21:It(e,t,n);break;case 22:n.mode&1?(Pe=(r=Pe)||n.memoizedState!==null,It(e,t,n),Pe=r):It(e,t,n);break;default:It(e,t,n)}}function rd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new x0),t.forEach(function(r){var o=R0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ot(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=de()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*T0(r/1960))-r,10e?16:e,Gt===null)var r=!1;else{if(e=Gt,Gt=null,$i=0,$&6)throw Error(A(331));var o=$;for($|=4,R=e.current;R!==null;){var i=R,s=i.child;if(R.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lde()-xu?Pn(e,0):vu|=n),Ve(e,t)}function Dh(e,t){t===0&&(e.mode&1?(t=Uo,Uo<<=1,!(Uo&130023424)&&(Uo=4194304)):t=1);var n=be();e=Lt(e,t),e!==null&&(Ao(e,t,n),Ve(e,n))}function N0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dh(e,n)}function R0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),Dh(e,n)}var Ih;Ih=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||De.current)Oe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Oe=!1,g0(e,t,n);Oe=!!(e.flags&131072)}else Oe=!1,ne&&t.flags&1048576&&Bp(t,_i,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;mi(e,t),e=t.pendingProps;var o=pr(t,ke.current);ur(t,n),o=fu(null,t,r,e,o,n);var i=pu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ie(r)?(i=!0,ji(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,au(t),o.updater=cs,t.stateNode=o,o._reactInternals=t,Xa(t,r,e,n),t=Ja(null,t,r,!0,i,n)):(t.tag=0,ne&&i&&eu(t),Re(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(mi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=M0(r),e=st(r,e),o){case 0:t=Za(null,t,r,e,n);break e;case 1:t=Zc(null,t,r,e,n);break e;case 11:t=Xc(null,t,r,e,n);break e;case 14:t=qc(null,t,r,st(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:st(r,o),Za(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:st(r,o),Zc(e,t,r,o,n);case 3:e:{if(wh(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Kp(e,t),Ii(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=yr(Error(A(423)),t),t=Jc(e,t,r,n,o);break e}else if(r!==o){o=yr(Error(A(424)),t),t=Jc(e,t,r,n,o);break e}else for(He=Xt(t.stateNode.containerInfo.firstChild),We=t,ne=!0,lt=null,n=Wp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hr(),r===o){t=_t(e,t,n);break e}Re(e,t,r,n)}t=t.child}return t;case 5:return Qp(t),e===null&&Ka(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ua(r,o)?s=null:i!==null&&Ua(r,i)&&(t.flags|=32),xh(e,t),Re(e,t,s,n),t.child;case 6:return e===null&&Ka(t),null;case 13:return Sh(e,t,n);case 4:return lu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=mr(t,null,r,n):Re(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:st(r,o),Xc(e,t,r,o,n);case 7:return Re(e,t,t.pendingProps,n),t.child;case 8:return Re(e,t,t.pendingProps.children,n),t.child;case 12:return Re(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,K(Oi,r._currentValue),r._currentValue=s,i!==null)if(ft(i.value,s)){if(i.children===o.children&&!De.current){t=_t(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Nt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Qa(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(A(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Qa(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Re(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ur(t,n),o=nt(o),r=r(o),t.flags|=1,Re(e,t,r,n),t.child;case 14:return r=t.type,o=st(r,t.pendingProps),o=st(r.type,o),qc(e,t,r,o,n);case 15:return yh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:st(r,o),mi(e,t),t.tag=1,Ie(r)?(e=!0,ji(t)):e=!1,ur(t,n),hh(t,r,o),Xa(t,r,o,n),Ja(null,t,r,!0,e,n);case 19:return Th(e,t,n);case 22:return vh(e,t,n)}throw Error(A(156,t.tag))};function Vh(e,t){return dp(e,t)}function b0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function et(e,t,n,r){return new b0(e,t,n,r)}function Cu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function M0(e){if(typeof e=="function")return Cu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ul)return 11;if(e===$l)return 14}return 2}function en(e,t){var n=e.alternate;return n===null?(n=et(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function vi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Cu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Hn:return kn(n.children,o,i,t);case Bl:s=8,o|=8;break;case wa:return e=et(12,n,t,o|2),e.elementType=wa,e.lanes=i,e;case Sa:return e=et(13,n,t,o),e.elementType=Sa,e.lanes=i,e;case Ta:return e=et(19,n,t,o),e.elementType=Ta,e.lanes=i,e;case Qf:return ps(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gf:s=10;break e;case Kf:s=9;break e;case Ul:s=11;break e;case $l:s=14;break e;case zt:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=et(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function kn(e,t,n,r){return e=et(7,e,r,t),e.lanes=n,e}function ps(e,t,n,r){return e=et(22,e,r,t),e.elementType=Qf,e.lanes=n,e.stateNode={isHidden:!1},e}function Js(e,t,n){return e=et(6,e,null,t),e.lanes=n,e}function ea(e,t,n){return t=et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function j0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_s(0),this.expirationTimes=_s(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_s(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Eu(e,t,n,r,o,i,s,a,l){return e=new j0(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=et(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},au(i),e}function L0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uh)}catch(e){console.error(e)}}Uh(),Uf.exports=Qe;var vs=Uf.exports;const V0=Sr(vs);var dd=vs;va.createRoot=dd.createRoot,va.hydrateRoot=dd.hydrateRoot;var $h={exports:{}},F0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",z0=F0,B0=z0;function Hh(){}function Wh(){}Wh.resetWarningCache=Hh;var U0=function(){function e(r,o,i,s,a,l){if(l!==B0){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Wh,resetWarningCache:Hh};return n.PropTypes=n,n};$h.exports=U0();var $0=$h.exports;const J=Sr($0);function H0(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Gh=w,W0=H0(Gh);function fd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var K0=!!(typeof window<"u"&&window.document&&window.document.createElement);function Q0(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var s=[],a;function l(){a=e(s.map(function(c){return c.props})),u.canUseDOM?t(a):n&&(a=n(a))}var u=function(c){G0(d,c);function d(){return c.apply(this,arguments)||this}d.peek=function(){return a},d.rewind=function(){if(d.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var x=a;return a=void 0,s=[],x};var f=d.prototype;return f.UNSAFE_componentWillMount=function(){s.push(this),l()},f.componentDidUpdate=function(){l()},f.componentWillUnmount=function(){var x=s.indexOf(this);s.splice(x,1),l()},f.render=function(){return W0.createElement(i,this.props)},d}(Gh.PureComponent);return fd(u,"displayName","SideEffect("+r(i)+")"),fd(u,"canUseDOM",K0),u}}var Y0=Q0;const X0=Sr(Y0);var q0=typeof Element<"u",Z0=typeof Map=="function",J0=typeof Set=="function",e1=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function xi(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!xi(e[r],t[r]))return!1;return!0}var i;if(Z0&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!xi(r.value[1],t.get(r.value[0])))return!1;return!0}if(J0&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(e1&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(q0&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!xi(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var t1=function(t,n){try{return xi(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const n1=Sr(t1);/* object-assign (c) Sindre Sorhus @license MIT */var pd=Object.getOwnPropertySymbols,r1=Object.prototype.hasOwnProperty,o1=Object.prototype.propertyIsEnumerable;function i1(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function s1(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var a1=s1()?Object.assign:function(e,t){for(var n,r=i1(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},m1=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},dl=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},g1=function(t){var n=dr(t,V.TITLE),r=dr(t,So.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=dr(t,So.DEFAULT_TITLE);return n||o||void 0},y1=function(t){return dr(t,So.ON_CHANGE_CLIENT_STATE)||function(){}},ta=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return Le({},r,o)},{})},v1=function(t,n){return n.filter(function(r){return typeof r[V.BASE]<"u"}).map(function(r){return r[V.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),s=0;s=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},x1=function(t){return{baseTag:v1([ee.HREF,ee.TARGET],t),bodyAttributes:ta(An.BODY,t),defer:dr(t,So.DEFER),encode:dr(t,So.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:ta(An.HTML,t),linkTags:Lr(V.LINK,[ee.REL,ee.HREF],t),metaTags:Lr(V.META,[ee.NAME,ee.CHARSET,ee.HTTPEQUIV,ee.PROPERTY,ee.ITEM_PROP],t),noscriptTags:Lr(V.NOSCRIPT,[ee.INNER_HTML],t),onChangeClientState:y1(t),scriptTags:Lr(V.SCRIPT,[ee.SRC,ee.INNER_HTML],t),styleTags:Lr(V.STYLE,[ee.CSS_TEXT],t),title:g1(t),titleAttributes:ta(An.TITLE,t)}},fl=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){fl(t)},0)}}(),md=function(t){return clearTimeout(t)},w1=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||fl:global.requestAnimationFrame||fl,S1=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||md:global.cancelAnimationFrame||md,T1=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},_r=null,C1=function(t){_r&&S1(_r),t.defer?_r=w1(function(){gd(t,function(){_r=null})}):(gd(t),_r=null)},gd=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.onChangeClientState,c=t.scriptTags,d=t.styleTags,f=t.title,h=t.titleAttributes;pl(V.BODY,o),pl(V.HTML,i),E1(f,h);var x={baseTag:Un(V.BASE,r),linkTags:Un(V.LINK,s),metaTags:Un(V.META,a),noscriptTags:Un(V.NOSCRIPT,l),scriptTags:Un(V.SCRIPT,c),styleTags:Un(V.STYLE,d)},y={},T={};Object.keys(x).forEach(function(g){var p=x[g],m=p.newTags,S=p.oldTags;m.length&&(y[g]=m),S.length&&(T[g]=x[g].oldTags)}),n&&n(),u(t,y,T)},Kh=function(t){return Array.isArray(t)?t.join(""):t},E1=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=Kh(t)),pl(V.TITLE,n)},pl=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(ut),i=o?o.split(","):[],s=[].concat(i),a=Object.keys(n),l=0;l=0;f--)r.removeAttribute(s[f]);i.length===s.length?r.removeAttribute(ut):r.getAttribute(ut)!==a.join(",")&&r.setAttribute(ut,a.join(","))}},Un=function(t,n){var r=document.head||document.querySelector(V.HEAD),o=r.querySelectorAll(t+"["+ut+"]"),i=Array.prototype.slice.call(o),s=[],a=void 0;return n&&n.length&&n.forEach(function(l){var u=document.createElement(t);for(var c in l)if(l.hasOwnProperty(c))if(c===ee.INNER_HTML)u.innerHTML=l.innerHTML;else if(c===ee.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=l.cssText:u.appendChild(document.createTextNode(l.cssText));else{var d=typeof l[c]>"u"?"":l[c];u.setAttribute(c,d)}u.setAttribute(ut,"true"),i.some(function(f,h){return a=h,u.isEqualNode(f)})?i.splice(a,1):s.push(u)}),i.forEach(function(l){return l.parentNode.removeChild(l)}),s.forEach(function(l){return r.appendChild(l)}),{oldTags:i,newTags:s}},Qh=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},P1=function(t,n,r,o){var i=Qh(r),s=Kh(n);return i?"<"+t+" "+ut+'="true" '+i+">"+dl(s,o)+"":"<"+t+" "+ut+'="true">'+dl(s,o)+""},k1=function(t,n,r){return n.reduce(function(o,i){var s=Object.keys(i).filter(function(u){return!(u===ee.INNER_HTML||u===ee.CSS_TEXT)}).reduce(function(u,c){var d=typeof i[c]>"u"?c:c+'="'+dl(i[c],r)+'"';return u?u+" "+d:d},""),a=i.innerHTML||i.cssText||"",l=c1.indexOf(t)===-1;return o+"<"+t+" "+ut+'="true" '+s+(l?"/>":">"+a+"")},"")},Yh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Gi[o]||o]=t[o],r},n)},A1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[u1[o]||o]=t[o],r},n)},N1=function(t,n,r){var o,i=(o={key:n},o[ut]=!0,o),s=Yh(r,i);return[te.createElement(V.TITLE,s,n)]},R1=function(t,n){return n.map(function(r,o){var i,s=(i={key:o},i[ut]=!0,i);return Object.keys(r).forEach(function(a){var l=Gi[a]||a;if(l===ee.INNER_HTML||l===ee.CSS_TEXT){var u=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:u}}else s[l]=r[a]}),te.createElement(t,s)})},St=function(t,n,r){switch(t){case V.TITLE:return{toComponent:function(){return N1(t,n.title,n.titleAttributes)},toString:function(){return P1(t,n.title,n.titleAttributes,r)}};case An.BODY:case An.HTML:return{toComponent:function(){return Yh(n)},toString:function(){return Qh(n)}};default:return{toComponent:function(){return R1(t,n)},toString:function(){return k1(t,n,r)}}}},Xh=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.scriptTags,c=t.styleTags,d=t.title,f=d===void 0?"":d,h=t.titleAttributes;return{base:St(V.BASE,n,o),bodyAttributes:St(An.BODY,r,o),htmlAttributes:St(An.HTML,i,o),link:St(V.LINK,s,o),meta:St(V.META,a,o),noscript:St(V.NOSCRIPT,l,o),script:St(V.SCRIPT,u,o),style:St(V.STYLE,c,o),title:St(V.TITLE,{title:f,titleAttributes:h},o)}},b1=function(t){var n,r;return r=n=function(o){h1(i,o);function i(){return f1(this,i),m1(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(a){return!n1(this.props,a)},i.prototype.mapNestedChildrenToProps=function(a,l){if(!l)return null;switch(a.type){case V.SCRIPT:case V.NOSCRIPT:return{innerHTML:l};case V.STYLE:return{cssText:l}}throw new Error("<"+a.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(a){var l,u=a.child,c=a.arrayTypeChildren,d=a.newChildProps,f=a.nestedChildren;return Le({},c,(l={},l[u.type]=[].concat(c[u.type]||[],[Le({},d,this.mapNestedChildrenToProps(u,f))]),l))},i.prototype.mapObjectTypeChildren=function(a){var l,u,c=a.child,d=a.newProps,f=a.newChildProps,h=a.nestedChildren;switch(c.type){case V.TITLE:return Le({},d,(l={},l[c.type]=h,l.titleAttributes=Le({},f),l));case V.BODY:return Le({},d,{bodyAttributes:Le({},f)});case V.HTML:return Le({},d,{htmlAttributes:Le({},f)})}return Le({},d,(u={},u[c.type]=Le({},f),u))},i.prototype.mapArrayTypeChildrenToProps=function(a,l){var u=Le({},l);return Object.keys(a).forEach(function(c){var d;u=Le({},u,(d={},d[c]=a[c],d))}),u},i.prototype.warnOnInvalidChildren=function(a,l){return!0},i.prototype.mapChildrenToProps=function(a,l){var u=this,c={};return te.Children.forEach(a,function(d){if(!(!d||!d.props)){var f=d.props,h=f.children,x=hd(f,["children"]),y=A1(x);switch(u.warnOnInvalidChildren(d,h),d.type){case V.LINK:case V.META:case V.NOSCRIPT:case V.SCRIPT:case V.STYLE:c=u.flattenArrayTypeChildren({child:d,arrayTypeChildren:c,newChildProps:y,nestedChildren:h});break;default:l=u.mapObjectTypeChildren({child:d,newProps:l,newChildProps:y,nestedChildren:h});break}}}),l=this.mapArrayTypeChildrenToProps(c,l),l},i.prototype.render=function(){var a=this.props,l=a.children,u=hd(a,["children"]),c=Le({},u);return l&&(c=this.mapChildrenToProps(l,c)),te.createElement(t,c)},p1(i,null,[{key:"canUseDOM",set:function(a){t.canUseDOM=a}}]),i}(te.Component),n.propTypes={base:J.object,bodyAttributes:J.object,children:J.oneOfType([J.arrayOf(J.node),J.node]),defaultTitle:J.string,defer:J.bool,encodeSpecialCharacters:J.bool,htmlAttributes:J.object,link:J.arrayOf(J.object),meta:J.arrayOf(J.object),noscript:J.arrayOf(J.object),onChangeClientState:J.func,script:J.arrayOf(J.object),style:J.arrayOf(J.object),title:J.string,titleAttributes:J.object,titleTemplate:J.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=Xh({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},M1=function(){return null},j1=X0(x1,C1,Xh)(M1),hl=b1(j1);hl.renderStatic=hl.rewind;function qh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;te&&(t=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):o(s,a)}}}var tm="!";function z1(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(s){for(var a=[],l=0,u=0,c,d=0;du?c-u:void 0;return{modifiers:a,hasImportantModifier:x,baseClassName:y,maybePostfixModifierPosition:T}}}function B1(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function U1(e){return{cache:F1(e.cacheSize),splitModifiers:z1(e),..._1(e)}}var $1=/\s+/;function H1(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split($1).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,c=a.baseClassName,d=a.maybePostfixModifierPosition,f=r(d?c.substring(0,d):c),h=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:s};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:s};h=!1}var x=B1(l).join(":"),y=u?x+tm:x;return{isTailwindClass:!0,modifierId:y,classGroupId:f,originalClassName:s,hasPostfixModifier:h}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,c=a+l;return i.has(c)?!1:(i.add(c),o(l,u).forEach(function(d){return i.add(a+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function W1(){for(var e=arguments.length,t=new Array(e),n=0;n{let n=!1;const r=e.map(o=>{const i=wd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var g;const{scope:f,children:h,...x}=d,y=((g=f==null?void 0:f[e])==null?void 0:g[l])||a,T=w.useMemo(()=>x,Object.values(x));return v.jsx(y.Provider,{value:T,children:h})};u.displayName=i+"Provider";function c(d,f){var y;const h=((y=f==null?void 0:f[e])==null?void 0:y[l])||a,x=w.useContext(h);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>w.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,ax(o,...t)]}function ax(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Ki(e){const t=ux(e),n=w.forwardRef((r,o)=>{const{children:i,...s}=r,a=w.Children.toArray(i),l=a.find(dx);if(l){const u=l.props.children,c=a.map(d=>d===l?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:d);return v.jsx(t,{...s,ref:o,children:w.isValidElement(u)?w.cloneElement(u,void 0,c):null})}return v.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var lx=Ki("Slot");function ux(e){const t=w.forwardRef((n,r)=>{const{children:o,...i}=n;if(w.isValidElement(o)){const s=px(o),a=fx(i,o.props);return o.type!==w.Fragment&&(a.ref=r?om(r,s):s),w.cloneElement(o,a)}return w.Children.count(o)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cx=Symbol("radix.slottable");function dx(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cx}function fx(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function px(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function hx(e){const t=e+"CollectionProvider",[n,r]=im(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{const{scope:T,children:g}=y,p=te.useRef(null),m=te.useRef(new Map).current;return v.jsx(o,{scope:T,itemMap:m,collectionRef:p,children:g})};s.displayName=t;const a=e+"CollectionSlot",l=Ki(a),u=te.forwardRef((y,T)=>{const{scope:g,children:p}=y,m=i(a,g),S=Ln(T,m.collectionRef);return v.jsx(l,{ref:S,children:p})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Ki(c),h=te.forwardRef((y,T)=>{const{scope:g,children:p,...m}=y,S=te.useRef(null),C=Ln(T,S),P=i(c,g);return te.useEffect(()=>(P.itemMap.set(S,{ref:S,...m}),()=>void P.itemMap.delete(S))),v.jsx(f,{[d]:"",ref:C,children:p})});h.displayName=c;function x(y){const T=i(e+"CollectionConsumer",y);return te.useCallback(()=>{const p=T.collectionRef.current;if(!p)return[];const m=Array.from(p.querySelectorAll(`[${d}]`));return Array.from(T.itemMap.values()).sort((P,E)=>m.indexOf(P.ref.current)-m.indexOf(E.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},x,r]}var mx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wt=mx.reduce((e,t)=>{const n=Ki(`Primitive.${t}`),r=w.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function sm(e,t){e&&vs.flushSync(()=>e.dispatchEvent(t))}function _n(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function gx(e,t=globalThis==null?void 0:globalThis.document){const n=_n(e);w.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var yx="DismissableLayer",yl="dismissableLayer.update",vx="dismissableLayer.pointerDownOutside",xx="dismissableLayer.focusOutside",Sd,am=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lm=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=w.useContext(am),[c,d]=w.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=w.useState({}),x=Ln(t,E=>d(E)),y=Array.from(u.layers),[T]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(T),p=c?y.indexOf(c):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,S=p>=g,C=Sx(E=>{const k=E.target,b=[...u.branches].some(M=>M.contains(k));!S||b||(o==null||o(E),s==null||s(E),E.defaultPrevented||a==null||a())},f),P=Tx(E=>{const k=E.target;[...u.branches].some(M=>M.contains(k))||(i==null||i(E),s==null||s(E),E.defaultPrevented||a==null||a())},f);return gx(E=>{p===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},f),w.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Sd=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Td(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Sd)}},[c,f,n,u]),w.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Td())},[c,u]),w.useEffect(()=>{const E=()=>h({});return document.addEventListener(yl,E),()=>document.removeEventListener(yl,E)},[]),v.jsx(wt.div,{...l,ref:x,style:{pointerEvents:m?S?"auto":"none":void 0,...e.style},onFocusCapture:$e(e.onFocusCapture,P.onFocusCapture),onBlurCapture:$e(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:$e(e.onPointerDownCapture,C.onPointerDownCapture)})});lm.displayName=yx;var wx="DismissableLayerBranch",um=w.forwardRef((e,t)=>{const n=w.useContext(am),r=w.useRef(null),o=Ln(t,r);return w.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),v.jsx(wt.div,{...e,ref:o})});um.displayName=wx;function Sx(e,t=globalThis==null?void 0:globalThis.document){const n=_n(e),r=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){cm(vx,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Tx(e,t=globalThis==null?void 0:globalThis.document){const n=_n(e),r=w.useRef(!1);return w.useEffect(()=>{const o=i=>{i.target&&!r.current&&cm(xx,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Td(){const e=new CustomEvent(yl);document.dispatchEvent(e)}function cm(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?sm(o,i):o.dispatchEvent(i)}var Cx=lm,Ex=um,To=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},Px="Portal",dm=w.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=w.useState(!1);To(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?V0.createPortal(v.jsx(wt.div,{...r,ref:t}),s):null});dm.displayName=Px;function kx(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var fm=e=>{const{present:t,children:n}=e,r=Ax(t),o=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),i=Ln(r.ref,Nx(o));return typeof n=="function"||r.isPresent?w.cloneElement(o,{ref:i}):null};fm.displayName="Presence";function Ax(e){const[t,n]=w.useState(),r=w.useRef(null),o=w.useRef(e),i=w.useRef("none"),s=e?"mounted":"unmounted",[a,l]=kx(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=ti(r.current);i.current=a==="mounted"?u:"none"},[a]),To(()=>{const u=r.current,c=o.current;if(c!==e){const f=i.current,h=ti(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),To(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=h=>{const y=ti(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&y&&(l("ANIMATION_END"),!o.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},f=h=>{h.target===t&&(i.current=ti(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ti(e){return(e==null?void 0:e.animationName)||"none"}function Nx(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Rx=Ay[" useInsertionEffect ".trim().toString()]||To;function bx({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=Mx({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const c=w.useRef(e!==void 0);w.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=w.useCallback(c=>{var d;if(a){const f=jx(c)?c(e):c;f!==e&&((d=s.current)==null||d.call(s,f))}else i(c)},[a,e,i,s]);return[l,u]}function Mx({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),o=w.useRef(n),i=w.useRef(t);return Rx(()=>{i.current=t},[t]),w.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function jx(e){return typeof e=="function"}var Lx=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),_x="VisuallyHidden",Ru=w.forwardRef((e,t)=>v.jsx(wt.span,{...e,ref:t,style:{...Lx,...e.style}}));Ru.displayName=_x;var bu="ToastProvider",[Mu,Ox,Dx]=hx("Toast"),[pm,iP]=im("Toast",[Dx]),[Ix,xs]=pm(bu),hm=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=w.useState(null),[u,c]=w.useState(0),d=w.useRef(!1),f=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${bu}\`. Expected non-empty \`string\`.`),v.jsx(Mu.Provider,{scope:t,children:v.jsx(Ix,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:w.useCallback(()=>c(h=>h+1),[]),onToastRemove:w.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};hm.displayName=bu;var mm="ToastViewport",Vx=["F8"],vl="toast.viewportPause",xl="toast.viewportResume",gm=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Vx,label:o="Notifications ({hotkey})",...i}=e,s=xs(mm,n),a=Ox(n),l=w.useRef(null),u=w.useRef(null),c=w.useRef(null),d=w.useRef(null),f=Ln(t,d,s.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=s.toastCount>0;w.useEffect(()=>{const T=g=>{var m;r.length!==0&&r.every(S=>g[S]||g.code===S)&&((m=d.current)==null||m.focus())};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[r]),w.useEffect(()=>{const T=l.current,g=d.current;if(x&&T&&g){const p=()=>{if(!s.isClosePausedRef.current){const P=new CustomEvent(vl);g.dispatchEvent(P),s.isClosePausedRef.current=!0}},m=()=>{if(s.isClosePausedRef.current){const P=new CustomEvent(xl);g.dispatchEvent(P),s.isClosePausedRef.current=!1}},S=P=>{!T.contains(P.relatedTarget)&&m()},C=()=>{T.contains(document.activeElement)||m()};return T.addEventListener("focusin",p),T.addEventListener("focusout",S),T.addEventListener("pointermove",p),T.addEventListener("pointerleave",C),window.addEventListener("blur",p),window.addEventListener("focus",m),()=>{T.removeEventListener("focusin",p),T.removeEventListener("focusout",S),T.removeEventListener("pointermove",p),T.removeEventListener("pointerleave",C),window.removeEventListener("blur",p),window.removeEventListener("focus",m)}}},[x,s.isClosePausedRef]);const y=w.useCallback(({tabbingDirection:T})=>{const p=a().map(m=>{const S=m.ref.current,C=[S,...qx(S)];return T==="forwards"?C:C.reverse()});return(T==="forwards"?p.reverse():p).flat()},[a]);return w.useEffect(()=>{const T=d.current;if(T){const g=p=>{var C,P,E;const m=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!m){const k=document.activeElement,b=p.shiftKey;if(p.target===T&&b){(C=u.current)==null||C.focus();return}const O=y({tabbingDirection:b?"backwards":"forwards"}),re=O.findIndex(j=>j===k);na(O.slice(re+1))?p.preventDefault():b?(P=u.current)==null||P.focus():(E=c.current)==null||E.focus()}};return T.addEventListener("keydown",g),()=>T.removeEventListener("keydown",g)}},[a,y]),v.jsxs(Ex,{ref:l,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&v.jsx(wl,{ref:u,onFocusFromOutsideViewport:()=>{const T=y({tabbingDirection:"forwards"});na(T)}}),v.jsx(Mu.Slot,{scope:n,children:v.jsx(wt.ol,{tabIndex:-1,...i,ref:f})}),x&&v.jsx(wl,{ref:c,onFocusFromOutsideViewport:()=>{const T=y({tabbingDirection:"backwards"});na(T)}})]})});gm.displayName=mm;var ym="ToastFocusProxy",wl=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=xs(ym,n);return v.jsx(Ru,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});wl.displayName=ym;var Mo="Toast",Fx="toast.swipeStart",zx="toast.swipeMove",Bx="toast.swipeCancel",Ux="toast.swipeEnd",vm=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,l]=bx({prop:r,defaultProp:o??!0,onChange:i,caller:Mo});return v.jsx(fm,{present:n||a,children:v.jsx(Wx,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:_n(e.onPause),onResume:_n(e.onResume),onSwipeStart:$e(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:$e(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:$e(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:$e(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});vm.displayName=Mo;var[$x,Hx]=pm(Mo,{onClose(){}}),Wx=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:h,...x}=e,y=xs(Mo,n),[T,g]=w.useState(null),p=Ln(t,j=>g(j)),m=w.useRef(null),S=w.useRef(null),C=o||y.duration,P=w.useRef(0),E=w.useRef(C),k=w.useRef(0),{onToastAdd:b,onToastRemove:M}=y,H=_n(()=>{var Z;(T==null?void 0:T.contains(document.activeElement))&&((Z=y.viewport)==null||Z.focus()),s()}),O=w.useCallback(j=>{!j||j===1/0||(window.clearTimeout(k.current),P.current=new Date().getTime(),k.current=window.setTimeout(H,j))},[H]);w.useEffect(()=>{const j=y.viewport;if(j){const Z=()=>{O(E.current),u==null||u()},B=()=>{const ce=new Date().getTime()-P.current;E.current=E.current-ce,window.clearTimeout(k.current),l==null||l()};return j.addEventListener(vl,B),j.addEventListener(xl,Z),()=>{j.removeEventListener(vl,B),j.removeEventListener(xl,Z)}}},[y.viewport,C,l,u,O]),w.useEffect(()=>{i&&!y.isClosePausedRef.current&&O(C)},[i,C,y.isClosePausedRef,O]),w.useEffect(()=>(b(),()=>M()),[b,M]);const re=w.useMemo(()=>T?Pm(T):null,[T]);return y.viewport?v.jsxs(v.Fragment,{children:[re&&v.jsx(Gx,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:re}),v.jsx($x,{scope:n,onClose:H,children:vs.createPortal(v.jsx(Mu.ItemSlot,{scope:n,children:v.jsx(Cx,{asChild:!0,onEscapeKeyDown:$e(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||H(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:v.jsx(wt.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...x,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:$e(e.onKeyDown,j=>{j.key==="Escape"&&(a==null||a(j.nativeEvent),j.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:$e(e.onPointerDown,j=>{j.button===0&&(m.current={x:j.clientX,y:j.clientY})}),onPointerMove:$e(e.onPointerMove,j=>{if(!m.current)return;const Z=j.clientX-m.current.x,B=j.clientY-m.current.y,ce=!!S.current,N=["left","right"].includes(y.swipeDirection),L=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,I=N?L(0,Z):0,_=N?0:L(0,B),U=j.pointerType==="touch"?10:2,G={x:I,y:_},ze={originalEvent:j,delta:G};ce?(S.current=G,ni(zx,d,ze,{discrete:!1})):Cd(G,y.swipeDirection,U)?(S.current=G,ni(Fx,c,ze,{discrete:!1}),j.target.setPointerCapture(j.pointerId)):(Math.abs(Z)>U||Math.abs(B)>U)&&(m.current=null)}),onPointerUp:$e(e.onPointerUp,j=>{const Z=S.current,B=j.target;if(B.hasPointerCapture(j.pointerId)&&B.releasePointerCapture(j.pointerId),S.current=null,m.current=null,Z){const ce=j.currentTarget,N={originalEvent:j,delta:Z};Cd(Z,y.swipeDirection,y.swipeThreshold)?ni(Ux,h,N,{discrete:!0}):ni(Bx,f,N,{discrete:!0}),ce.addEventListener("click",L=>L.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),Gx=e=>{const{__scopeToast:t,children:n,...r}=e,o=xs(Mo,t),[i,s]=w.useState(!1),[a,l]=w.useState(!1);return Yx(()=>s(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:v.jsx(dm,{asChild:!0,children:v.jsx(Ru,{...r,children:i&&v.jsxs(v.Fragment,{children:[o.label," ",n]})})})},Kx="ToastTitle",xm=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(wt.div,{...r,ref:t})});xm.displayName=Kx;var Qx="ToastDescription",wm=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(wt.div,{...r,ref:t})});wm.displayName=Qx;var Sm="ToastAction",Tm=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?v.jsx(Em,{altText:n,asChild:!0,children:v.jsx(ju,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Sm}\`. Expected non-empty \`string\`.`),null)});Tm.displayName=Sm;var Cm="ToastClose",ju=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Hx(Cm,n);return v.jsx(Em,{asChild:!0,children:v.jsx(wt.button,{type:"button",...r,ref:t,onClick:$e(e.onClick,o.onClose)})})});ju.displayName=Cm;var Em=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return v.jsx(wt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Pm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Xx(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Pm(r))}}),t}function ni(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?sm(o,i):o.dispatchEvent(i)}var Cd=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function Yx(e=()=>{}){const t=_n(e);To(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Xx(e){return e.nodeType===e.ELEMENT_NODE}function qx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function na(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Zx=hm,km=gm,Am=vm,Nm=xm,Rm=wm,bm=Tm,Mm=ju;const Ed=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Pd=Zh,jm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Pd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const f=Ed(c)||Ed(d);return o[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...h}=c;return Object.entries(h).every(x=>{let[y,T]=x;return Array.isArray(T)?T.includes({...i,...a}[y]):{...i,...a}[y]===T})?[...u,d,f]:u},[]);return Pd(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};var Jx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ew=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ve=(e,t)=>{const n=w.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:s,children:a,...l},u)=>w.createElement("svg",{ref:u,...Jx,width:o,height:o,stroke:r,strokeWidth:s?Number(i)*24/Number(o):i,className:`lucide lucide-${ew(e)}`,...l},[...t.map(([c,d])=>w.createElement(c,d)),...(Array.isArray(a)?a:[a])||[]]));return n.displayName=`${e}`,n},Lm=ve("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]),tw=ve("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]),nw=ve("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["polyline",{points:"22 4 12 14.01 9 11.01",key:"6xbx8j"}]]),rw=ve("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),ow=ve("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),iw=ve("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]),sw=ve("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),aw=ve("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]),lw=ve("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]),uw=ve("MousePointerClick",[["path",{d:"m9 9 5 12 1.8-5.2L21 14Z",key:"1b76lo"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}]]),cw=ve("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]),dw=ve("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]),fw=ve("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),pw=ve("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]),Lu=ve("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),hw=ve("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]),mw=ve("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),_m=ve("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),gw=Zx,Om=te.forwardRef(({className:e,...t},n)=>v.jsx(km,{ref:n,className:pt("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Om.displayName=km.displayName;const yw=jm("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",destructive:"group destructive border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Dm=te.forwardRef(({className:e,variant:t,...n},r)=>v.jsx(Am,{ref:r,className:pt(yw({variant:t}),e),...n}));Dm.displayName=Am.displayName;const vw=te.forwardRef(({className:e,...t},n)=>v.jsx(bm,{ref:n,className:pt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));vw.displayName=bm.displayName;const Im=te.forwardRef(({className:e,...t},n)=>v.jsx(Mm,{ref:n,className:pt("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:v.jsx(mw,{className:"h-4 w-4"})}));Im.displayName=Mm.displayName;const Vm=te.forwardRef(({className:e,...t},n)=>v.jsx(Nm,{ref:n,className:pt("text-sm font-semibold",e),...t}));Vm.displayName=Nm.displayName;const Fm=te.forwardRef(({className:e,...t},n)=>v.jsx(Rm,{ref:n,className:pt("text-sm opacity-90",e),...t}));Fm.displayName=Rm.displayName;const xw=1;let ra=0;function ww(){return ra=(ra+1)%Number.MAX_VALUE,ra.toString()}const Ae={state:{toasts:[]},listeners:[],getState:()=>Ae.state,setState:e=>{typeof e=="function"?Ae.state=e(Ae.state):Ae.state={...Ae.state,...e},Ae.listeners.forEach(t=>t(Ae.state))},subscribe:e=>(Ae.listeners.push(e),()=>{Ae.listeners=Ae.listeners.filter(t=>t!==e)})},Sw=({...e})=>{const t=ww(),n=o=>Ae.setState(i=>({...i,toasts:i.toasts.map(s=>s.id===t?{...s,...o}:s)})),r=()=>Ae.setState(o=>({...o,toasts:o.toasts.filter(i=>i.id!==t)}));return Ae.setState(o=>({...o,toasts:[{...e,id:t,dismiss:r},...o.toasts].slice(0,xw)})),{id:t,dismiss:r,update:n}};function zm(){const[e,t]=w.useState(Ae.getState());return w.useEffect(()=>Ae.subscribe(r=>{t(r)}),[]),w.useEffect(()=>{const n=[];return e.toasts.forEach(r=>{if(r.duration===1/0)return;const o=setTimeout(()=>{r.dismiss()},r.duration||5e3);n.push(o)}),()=>{n.forEach(r=>clearTimeout(r))}},[e.toasts]),{toast:Sw,toasts:e.toasts}}function Tw(){const{toasts:e}=zm();return v.jsxs(gw,{children:[e.map(({id:t,title:n,description:r,action:o,...i})=>v.jsxs(Dm,{...i,children:[v.jsxs("div",{className:"grid gap-1",children:[n&&v.jsx(Vm,{children:n}),r&&v.jsx(Fm,{children:r})]}),o,v.jsx(Im,{})]},t)),v.jsx(Om,{})]})}const Bm=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ws=w.createContext({}),Ss=w.createContext(null),Ts=typeof document<"u",_u=Ts?w.useLayoutEffect:w.useEffect,Um=w.createContext({strict:!1}),Ou=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Cw="framerAppearId",$m="data-"+Ou(Cw);function Ew(e,t,n,r){const{visualElement:o}=w.useContext(ws),i=w.useContext(Um),s=w.useContext(Ss),a=w.useContext(Bm).reducedMotion,l=w.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;w.useInsertionEffect(()=>{u&&u.update(n,s)});const c=w.useRef(!!(n[$m]&&!window.HandoffComplete));return _u(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),w.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function tr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Pw(e,t,n){return w.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):tr(n)&&(n.current=r))},[t])}function Co(e){return typeof e=="string"||Array.isArray(e)}function Cs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Du=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Iu=["initial",...Du];function Es(e){return Cs(e.animate)||Iu.some(t=>Co(e[t]))}function Hm(e){return!!(Es(e)||e.variants)}function kw(e,t){if(Es(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Co(n)?n:void 0,animate:Co(r)?r:void 0}}return e.inherit!==!1?t:{}}function Aw(e){const{initial:t,animate:n}=kw(e,w.useContext(ws));return w.useMemo(()=>({initial:t,animate:n}),[kd(t),kd(n)])}function kd(e){return Array.isArray(e)?e.join(" "):e}const Ad={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Eo={};for(const e in Ad)Eo[e]={isEnabled:t=>Ad[e].some(n=>!!t[n])};function Nw(e){for(const t in e)Eo[t]={...Eo[t],...e[t]}}const Vu=w.createContext({}),Wm=w.createContext({}),Rw=Symbol.for("motionComponentSymbol");function bw({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&Nw(e);function i(a,l){let u;const c={...w.useContext(Bm),...a,layoutId:Mw(a)},{isStatic:d}=c,f=Aw(a),h=r(a,d);if(!d&&Ts){f.visualElement=Ew(o,h,c,t);const x=w.useContext(Wm),y=w.useContext(Um).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,y,e,x))}return w.createElement(ws.Provider,{value:f},u&&f.visualElement?w.createElement(u,{visualElement:f.visualElement,...c}):null,n(o,a,Pw(h,f.visualElement,l),h,d,f.visualElement))}const s=w.forwardRef(i);return s[Rw]=o,s}function Mw({layoutId:e}){const t=w.useContext(Vu).id;return t&&e!==void 0?t+"-"+e:e}function jw(e){function t(r,o={}){return bw(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const Lw=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Fu(e){return typeof e!="string"||e.includes("-")?!1:!!(Lw.indexOf(e)>-1||/[A-Z]/.test(e))}const Qi={};function _w(e){Object.assign(Qi,e)}const jo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vn=new Set(jo);function Gm(e,{layout:t,layoutId:n}){return Vn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Qi[e]||e==="opacity")}const Fe=e=>!!(e&&e.getVelocity),Ow={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Dw=jo.length;function Iw(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),Qm=Km("--"),Sl=Km("var(--"),Vw=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Fw=(e,t)=>t&&typeof e=="number"?t.transform(e):e,sn=(e,t,n)=>Math.min(Math.max(n,e),t),Fn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Jr={...Fn,transform:e=>sn(0,1,e)},ri={...Fn,default:1},eo=e=>Math.round(e*1e5)/1e5,Ps=/(-)?([\d]*\.?[\d])+/g,Ym=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,zw=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Lo(e){return typeof e=="string"}const _o=e=>({test:t=>Lo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ft=_o("deg"),xt=_o("%"),D=_o("px"),Bw=_o("vh"),Uw=_o("vw"),Nd={...xt,parse:e=>xt.parse(e)/100,transform:e=>xt.transform(e*100)},Rd={...Fn,transform:Math.round},Xm={borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,radius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,size:D,top:D,right:D,bottom:D,left:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,rotate:Ft,rotateX:Ft,rotateY:Ft,rotateZ:Ft,scale:ri,scaleX:ri,scaleY:ri,scaleZ:ri,skew:Ft,skewX:Ft,skewY:Ft,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,transformPerspective:D,opacity:Jr,originX:Nd,originY:Nd,originZ:D,zIndex:Rd,fillOpacity:Jr,strokeOpacity:Jr,numOctaves:Rd};function zu(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(Qm(d)){i[d]=f;continue}const h=Xm[d],x=Fw(f,h);if(Vn.has(d)){if(l=!0,s[d]=x,!c)continue;f!==(h.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=x):o[d]=x}if(t.transform||(l||r?o.transform=Iw(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:h=0}=a;o.transformOrigin=`${d} ${f} ${h}`}}const Bu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function qm(e,t,n){for(const r in t)!Fe(t[r])&&!Gm(r,n)&&(e[r]=t[r])}function $w({transformTemplate:e},t,n){return w.useMemo(()=>{const r=Bu();return zu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Hw(e,t,n){const r=e.style||{},o={};return qm(o,r,e),Object.assign(o,$w(e,t,n)),e.transformValues?e.transformValues(o):o}function Ww(e,t,n){const r={},o=Hw(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Gw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Yi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Gw.has(e)}let Zm=e=>!Yi(e);function Kw(e){e&&(Zm=t=>t.startsWith("on")?!Yi(t):e(t))}try{Kw(require("@emotion/is-prop-valid").default)}catch{}function Qw(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Zm(o)||n===!0&&Yi(o)||!t&&!Yi(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function bd(e,t,n){return typeof e=="string"?e:D.transform(t+n*e)}function Yw(e,t,n){const r=bd(t,e.x,e.width),o=bd(n,e.y,e.height);return`${r} ${o}`}const Xw={offset:"stroke-dashoffset",array:"stroke-dasharray"},qw={offset:"strokeDashoffset",array:"strokeDasharray"};function Zw(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Xw:qw;e[i.offset]=D.transform(-r);const s=D.transform(t),a=D.transform(n);e[i.array]=`${s} ${a}`}function Uu(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(zu(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:x,dimensions:y}=e;h.transform&&(y&&(x.transform=h.transform),delete h.transform),y&&(o!==void 0||i!==void 0||x.transform)&&(x.transformOrigin=Yw(y,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&Zw(h,s,a,l,!1)}const Jm=()=>({...Bu(),attrs:{}}),$u=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Jw(e,t,n,r){const o=w.useMemo(()=>{const i=Jm();return Uu(i,t,{enableHardwareAcceleration:!1},$u(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};qm(i,e.style,e),o.style={...i,...o.style}}return o}function eS(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Fu(n)?Jw:Ww)(r,i,s,n),c={...Qw(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=w.useMemo(()=>Fe(d)?d.get():d,[d]);return w.createElement(n,{...c,children:f})}}function eg(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const tg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ng(e,t,n,r){eg(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(tg.has(o)?o:Ou(o),t.attrs[o])}function Hu(e,t){const{style:n}=e,r={};for(const o in n)(Fe(n[o])||t.style&&Fe(t.style[o])||Gm(o,e))&&(r[o]=n[o]);return r}function rg(e,t){const n=Hu(e,t);for(const r in e)if(Fe(e[r])||Fe(t[r])){const o=jo.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function Wu(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function og(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const Xi=e=>Array.isArray(e),tS=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),nS=e=>Xi(e)?e[e.length-1]||0:e;function wi(e){const t=Fe(e)?e.get():e;return tS(t)?t.toValue():t}function rS({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:oS(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const ig=e=>(t,n)=>{const r=w.useContext(ws),o=w.useContext(Ss),i=()=>rS(e,t,r,o);return n?i():og(i)};function oS(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=wi(i[f]);let{initial:s,animate:a}=e;const l=Es(e),u=Hm(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!Cs(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const x=Wu(e,h);if(!x)return;const{transitionEnd:y,transition:T,...g}=x;for(const p in g){let m=g[p];if(Array.isArray(m)){const S=c?m.length-1:0;m=m[S]}m!==null&&(o[p]=m)}for(const p in y)o[p]=y[p]}),o}const ue=e=>e;class Md{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function iS(e){let t=new Md,n=new Md,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=iS(()=>n=!0),d),{}),s=d=>i[d].process(o),a=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,sS),1),o.timestamp=d,o.isProcessing=!0,oi.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:oi.reduce((d,f)=>{const h=i[f];return d[f]=(x,y=!1,T=!1)=>(n||l(),h.schedule(x,y,T)),d},{}),cancel:d=>oi.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:Q,cancel:Ot,state:Ee,steps:oa}=aS(typeof requestAnimationFrame<"u"?requestAnimationFrame:ue,!0),lS={useVisualState:ig({scrapeMotionValuesFromProps:rg,createRenderState:Jm,onMount:(e,t,{renderState:n,latestValues:r})=>{Q.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Q.render(()=>{Uu(n,r,{enableHardwareAcceleration:!1},$u(t.tagName),e.transformTemplate),ng(t,n)})}})},uS={useVisualState:ig({scrapeMotionValuesFromProps:Hu,createRenderState:Bu})};function cS(e,{forwardMotionProps:t=!1},n,r){return{...Fu(e)?lS:uS,preloadedFeatures:n,useRender:eS(t),createVisualElement:r,Component:e}}function kt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const sg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ks(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const dS=e=>t=>sg(t)&&e(t,ks(t));function Rt(e,t,n,r){return kt(e,t,dS(n),r)}const fS=(e,t)=>n=>t(e(n)),tn=(...e)=>e.reduce(fS);function ag(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const jd=ag("dragHorizontal"),Ld=ag("dragVertical");function lg(e){let t=!1;if(e==="y")t=Ld();else if(e==="x")t=jd();else{const n=jd(),r=Ld();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ug(){const e=lg(!0);return e?(e(),!1):!0}class dn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function _d(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||ug())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Q.update(()=>a[r](i,s))};return Rt(e.current,n,o,{passive:!e.getProps()[r]})}class pS extends dn{mount(){this.unmount=tn(_d(this.node,!0),_d(this.node,!1))}unmount(){}}class hS extends dn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tn(kt(this.node.current,"focus",()=>this.onFocus()),kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const cg=(e,t)=>t?e===t?!0:cg(e,t.parentElement):!1;function ia(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,ks(n))}class mS extends dn{constructor(){super(...arguments),this.removeStartListeners=ue,this.removeEndListeners=ue,this.removeAccessibleListeners=ue,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Rt(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();Q.update(()=>{!d&&!cg(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=Rt(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=tn(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||ia("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Q.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=kt(this.node.current,"keyup",s),ia("down",(a,l)=>{this.startPress(a,l)})},n=kt(this.node.current,"keydown",t),r=()=>{this.isPressing&&ia("cancel",(i,s)=>this.cancelPress(i,s))},o=kt(this.node.current,"blur",r);this.removeAccessibleListeners=tn(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Q.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ug()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Q.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Rt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=kt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Tl=new WeakMap,sa=new WeakMap,gS=e=>{const t=Tl.get(e.target);t&&t(e)},yS=e=>{e.forEach(gS)};function vS({root:e,...t}){const n=e||document;sa.has(n)||sa.set(n,{});const r=sa.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(yS,{root:e,...t})),r[o]}function xS(e,t,n){const r=vS(t);return Tl.set(e,n),r.observe(e),()=>{Tl.delete(e),r.unobserve(e)}}const wS={some:0,all:1};class SS extends dn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:wS[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return xS(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(TS(t,n))&&this.startObserver()}unmount(){}}function TS({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const CS={inView:{Feature:SS},tap:{Feature:mS},focus:{Feature:hS},hover:{Feature:pS}};function dg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function PS(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function As(e,t,n){const r=e.getProps();return Wu(r,t,n!==void 0?n:r.custom,ES(e),PS(e))}let kS=ue,Gu=ue;const nn=e=>e*1e3,bt=e=>e/1e3,AS={current:!1},fg=e=>Array.isArray(e)&&typeof e[0]=="number";function pg(e){return!!(!e||typeof e=="string"&&hg[e]||fg(e)||Array.isArray(e)&&e.every(pg))}const $r=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$r([0,.65,.55,1]),circOut:$r([.55,0,1,.45]),backIn:$r([.31,.01,.66,-.59]),backOut:$r([.33,1.53,.69,.99])};function mg(e){if(e)return fg(e)?$r(e):Array.isArray(e)?e.map(mg):hg[e]}function NS(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=mg(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function RS(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const gg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,bS=1e-7,MS=12;function jS(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=gg(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>bS&&++ajS(i,0,1,e,n);return i=>i===0||i===1?i:gg(o(i),t,r)}const LS=Oo(.42,0,1,1),_S=Oo(0,0,.58,1),yg=Oo(.42,0,.58,1),OS=e=>Array.isArray(e)&&typeof e[0]!="number",vg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xg=e=>t=>1-e(1-t),Ku=e=>1-Math.sin(Math.acos(e)),wg=xg(Ku),DS=vg(Ku),Sg=Oo(.33,1.53,.69,.99),Qu=xg(Sg),IS=vg(Qu),VS=e=>(e*=2)<1?.5*Qu(e):.5*(2-Math.pow(2,-10*(e-1))),FS={linear:ue,easeIn:LS,easeInOut:yg,easeOut:_S,circIn:Ku,circInOut:DS,circOut:wg,backIn:Qu,backInOut:IS,backOut:Sg,anticipate:VS},Od=e=>{if(Array.isArray(e)){Gu(e.length===4);const[t,n,r,o]=e;return Oo(t,n,r,o)}else if(typeof e=="string")return FS[e];return e},Yu=(e,t)=>n=>!!(Lo(n)&&zw.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Tg=(e,t,n)=>r=>{if(!Lo(r))return r;const[o,i,s,a]=r.match(Ps);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},zS=e=>sn(0,255,e),aa={...Fn,transform:e=>Math.round(zS(e))},En={test:Yu("rgb","red"),parse:Tg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+aa.transform(e)+", "+aa.transform(t)+", "+aa.transform(n)+", "+eo(Jr.transform(r))+")"};function BS(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Cl={test:Yu("#"),parse:BS,transform:En.transform},nr={test:Yu("hsl","hue"),parse:Tg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+xt.transform(eo(t))+", "+xt.transform(eo(n))+", "+eo(Jr.transform(r))+")"},Ne={test:e=>En.test(e)||Cl.test(e)||nr.test(e),parse:e=>En.test(e)?En.parse(e):nr.test(e)?nr.parse(e):Cl.parse(e),transform:e=>Lo(e)?e:e.hasOwnProperty("red")?En.transform(e):nr.transform(e)},ie=(e,t,n)=>-n*e+n*t+e;function la(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function US({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=la(l,a,e+1/3),i=la(l,a,e),s=la(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const ua=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},$S=[Cl,En,nr],HS=e=>$S.find(t=>t.test(e));function Dd(e){const t=HS(e);let n=t.parse(e);return t===nr&&(n=US(n)),n}const Cg=(e,t)=>{const n=Dd(e),r=Dd(t),o={...n};return i=>(o.red=ua(n.red,r.red,i),o.green=ua(n.green,r.green,i),o.blue=ua(n.blue,r.blue,i),o.alpha=ie(n.alpha,r.alpha,i),En.transform(o))};function WS(e){var t,n;return isNaN(e)&&Lo(e)&&(((t=e.match(Ps))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ym))===null||n===void 0?void 0:n.length)||0)>0}const Eg={regex:Vw,countKey:"Vars",token:"${v}",parse:ue},Pg={regex:Ym,countKey:"Colors",token:"${c}",parse:Ne.parse},kg={regex:Ps,countKey:"Numbers",token:"${n}",parse:Fn.parse};function ca(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function qi(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ca(n,Eg),ca(n,Pg),ca(n,kg),n}function Ag(e){return qi(e).values}function Ng(e){const{values:t,numColors:n,numVars:r,tokenised:o}=qi(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function KS(e){const t=Ag(e);return Ng(e)(t.map(GS))}const an={test:WS,parse:Ag,createTransformer:Ng,getAnimatableNone:KS},Rg=(e,t)=>n=>`${n>0?t:e}`;function bg(e,t){return typeof e=="number"?n=>ie(e,t,n):Ne.test(e)?Cg(e,t):e.startsWith("var(")?Rg(e,t):jg(e,t)}const Mg=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>bg(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=bg(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},jg=(e,t)=>{const n=an.createTransformer(t),r=qi(e),o=qi(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?tn(Mg(r.values,o.values),n):Rg(e,t)},Po=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Id=(e,t)=>n=>ie(e,t,n);function YS(e){return typeof e=="number"?Id:typeof e=="string"?Ne.test(e)?Cg:jg:Array.isArray(e)?Mg:typeof e=="object"?QS:Id}function XS(e,t,n){const r=[],o=n||YS(e[0]),i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=XS(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(sn(e[0],e[i-1],u)):l}function qS(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Po(0,t,r);e.push(ie(n,1,o))}}function ZS(e){const t=[0];return qS(t,e.length-1),t}function JS(e,t){return e.map(n=>n*t)}function eT(e,t){return e.map(()=>t||yg).splice(0,e.length-1)}function Zi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=OS(r)?r.map(Od):Od(r),i={done:!1,value:t[0]},s=JS(n&&n.length===t.length?n:ZS(t),e),a=Lg(s,t,{ease:Array.isArray(o)?o:eT(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function _g(e,t){return t?e*(1e3/t):0}const tT=5;function Og(e,t,n){const r=Math.max(t-tT,0);return _g(n-e(r),t-r)}const da=.001,nT=.01,Vd=10,rT=.05,oT=1;function iT({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;kS(e<=nn(Vd));let s=1-t;s=sn(rT,oT,s),e=sn(nT,Vd,bt(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,h=El(u,s),x=Math.exp(-d);return da-f/h*x},i=u=>{const d=u*s*e,f=d*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,x=Math.exp(-d),y=El(Math.pow(u,2),s);return(-o(u)+da>0?-1:1)*((f-h)*x)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-da+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=aT(o,i,a);if(e=nn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const sT=12;function aT(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function cT(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Fd(e,uT)&&Fd(e,lT)){const n=iT(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Dg({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=cT({...r,velocity:-bt(r.velocity||0)}),h=d||0,x=l/(2*Math.sqrt(a*u)),y=i-o,T=bt(Math.sqrt(a/u)),g=Math.abs(y)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let p;if(x<1){const m=El(T,x);p=S=>{const C=Math.exp(-x*T*S);return i-C*((h+x*T*y)/m*Math.sin(m*S)+y*Math.cos(m*S))}}else if(x===1)p=m=>i-Math.exp(-T*m)*(y+(h+T*y)*m);else{const m=T*Math.sqrt(x*x-1);p=S=>{const C=Math.exp(-x*T*S),P=Math.min(m*S,300);return i-C*((h+x*T*y)*Math.sinh(P)+m*y*Math.cosh(P))/m}}return{calculatedDuration:f&&c||null,next:m=>{const S=p(m);if(f)s.done=m>=c;else{let C=h;m!==0&&(x<1?C=Og(p,m,S):C=0);const P=Math.abs(C)<=n,E=Math.abs(i-S)<=t;s.done=P&&E}return s.value=s.done?i:S,s}}}function zd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=k=>a!==void 0&&kl,x=k=>a===void 0?l:l===void 0||Math.abs(a-k)-y*Math.exp(-k/r),m=k=>g+p(k),S=k=>{const b=p(k),M=m(k);f.done=Math.abs(b)<=u,f.value=f.done?g:M};let C,P;const E=k=>{h(f.value)&&(C=k,P=Dg({keyframes:[f.value,x(f.value)],velocity:Og(m,k,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:k=>{let b=!1;return!P&&C===void 0&&(b=!0,S(k),E(k)),C!==void 0&&k>C?P.next(k-C):(!b&&S(k),f)}}}const dT=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Q.update(t,!0),stop:()=>Ot(t),now:()=>Ee.isProcessing?Ee.timestamp:performance.now()}},Bd=2e4;function Ud(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Bd?1/0:t}const fT={decay:zd,inertia:zd,tween:Zi,keyframes:Zi,spring:Dg};function Ji({autoplay:e=!0,delay:t=0,driver:n=dT,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let h=1,x=!1,y,T;const g=()=>{T=new Promise(_=>{y=_})};g();let p;const m=fT[o]||Zi;let S;m!==Zi&&typeof r[0]!="number"&&(S=Lg([0,100],r,{clamp:!1}),r=[0,100]);const C=m({...f,keyframes:r});let P;a==="mirror"&&(P=m({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let E="idle",k=null,b=null,M=null;C.calculatedDuration===null&&i&&(C.calculatedDuration=Ud(C));const{calculatedDuration:H}=C;let O=1/0,re=1/0;H!==null&&(O=H+s,re=O*(i+1)-s);let j=0;const Z=_=>{if(b===null)return;h>0&&(b=Math.min(b,_)),h<0&&(b=Math.min(_-re/h,b)),k!==null?j=k:j=Math.round(_-b)*h;const U=j-t*(h>=0?1:-1),G=h>=0?U<0:U>re;j=Math.max(U,0),E==="finished"&&k===null&&(j=re);let ze=j,zn=C;if(i){const Ns=Math.min(j,re)/O;let Do=Math.floor(Ns),pn=Ns%1;!pn&&Ns>=1&&(pn=1),pn===1&&Do--,Do=Math.min(Do,i+1),!!(Do%2)&&(a==="reverse"?(pn=1-pn,s&&(pn-=s/O)):a==="mirror"&&(zn=P)),ze=sn(0,1,pn)*O}const Be=G?{done:!1,value:r[0]}:zn.next(ze);S&&(Be.value=S(Be.value));let{done:fn}=Be;!G&&H!==null&&(fn=h>=0?j>=re:j<=0);const cy=k===null&&(E==="finished"||E==="running"&&fn);return d&&d(Be.value),cy&&N(),Be},B=()=>{p&&p.stop(),p=void 0},ce=()=>{E="idle",B(),y(),g(),b=M=null},N=()=>{E="finished",c&&c(),B(),y()},L=()=>{if(x)return;p||(p=n(Z));const _=p.now();l&&l(),k!==null?b=_-k:(!b||E==="finished")&&(b=_),E==="finished"&&g(),M=b,k=null,E="running",p.start()};e&&L();const I={then(_,U){return T.then(_,U)},get time(){return bt(j)},set time(_){_=nn(_),j=_,k!==null||!p||h===0?k=_:b=p.now()-_/h},get duration(){const _=C.calculatedDuration===null?Ud(C):C.calculatedDuration;return bt(_)},get speed(){return h},set speed(_){_===h||!p||(h=_,I.time=bt(j))},get state(){return E},play:L,pause:()=>{E="paused",k=j},stop:()=>{x=!0,E!=="idle"&&(E="idle",u&&u(),ce())},cancel:()=>{M!==null&&Z(M),ce()},complete:()=>{E="finished"},sample:_=>(b=0,Z(_))};return I}function pT(e){let t;return()=>(t===void 0&&(t=e()),t)}const hT=pT(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),mT=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ii=10,gT=2e4,yT=(e,t)=>t.type==="spring"||e==="backgroundColor"||!pg(t.ease);function vT(e,t,{onUpdate:n,onComplete:r,...o}){if(!(hT()&&mT.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const c=()=>{l=new Promise(m=>{a=m})};c();let{keyframes:d,duration:f=300,ease:h,times:x}=o;if(yT(t,o)){const m=Ji({...o,repeat:0,delay:0});let S={done:!1,value:d[0]};const C=[];let P=0;for(;!S.done&&P{u=!1,y.cancel()},g=()=>{u=!0,Q.update(T),a(),c()};return y.onfinish=()=>{u||(e.set(RS(d,o)),r&&r(),g())},{then(m,S){return l.then(m,S)},attachTimeline(m){return y.timeline=m,y.onfinish=null,ue},get time(){return bt(y.currentTime||0)},set time(m){y.currentTime=nn(m)},get speed(){return y.playbackRate},set speed(m){y.playbackRate=m},get duration(){return bt(f)},play:()=>{s||(y.play(),Ot(T))},pause:()=>y.pause(),stop:()=>{if(s=!0,y.playState==="idle")return;const{currentTime:m}=y;if(m){const S=Ji({...o,autoplay:!1});e.setWithVelocity(S.sample(m-ii).value,S.sample(m).value,ii)}g()},complete:()=>{u||y.finish()},cancel:g}}function xT({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ue,pause:ue,stop:ue,then:i=>(i(),Promise.resolve()),cancel:ue,complete:ue});return t?Ji({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const wT={type:"spring",stiffness:500,damping:25,restSpeed:10},ST=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TT={type:"keyframes",duration:.8},CT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ET=(e,{keyframes:t})=>t.length>2?TT:Vn.has(e)?e.startsWith("scale")?ST(t[1]):wT:CT,Pl=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(an.test(t)||t==="0")&&!t.startsWith("url(")),PT=new Set(["brightness","contrast","saturate","opacity"]);function kT(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ps)||[];if(!r)return e;const o=n.replace(r,"");let i=PT.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const AT=/([a-z-]*)\(.*?\)/g,kl={...an,getAnimatableNone:e=>{const t=e.match(AT);return t?t.map(kT).join(" "):e}},NT={...Xm,color:Ne,backgroundColor:Ne,outlineColor:Ne,fill:Ne,stroke:Ne,borderColor:Ne,borderTopColor:Ne,borderRightColor:Ne,borderBottomColor:Ne,borderLeftColor:Ne,filter:kl,WebkitFilter:kl},Xu=e=>NT[e];function Ig(e,t){let n=Xu(e);return n!==kl&&(n=an),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Vg=e=>/^0[^.\s]+$/.test(e);function RT(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Vg(e)}function bT(e,t,n,r){const o=Pl(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=qu(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-nn(s);const l=bT(t,e,n,i),u=l[0],c=l[l.length-1],d=Pl(e,u),f=Pl(e,c);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:x=>{t.set(x),i.onUpdate&&i.onUpdate(x)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(MT(i)||(h={...h,...ET(e,h)}),h.duration&&(h.duration=nn(h.duration)),h.repeatDelay&&(h.repeatDelay=nn(h.repeatDelay)),!d||!f||AS.current||i.type===!1||jT.skipAnimations)return xT(h);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const x=vT(t,e,h);if(x)return x}return Ji(h)};function es(e){return!!(Fe(e)&&e.add)}const Fg=e=>/^\-?\d*\.?\d+$/.test(e);function Ju(e,t){e.indexOf(t)===-1&&e.push(t)}function ec(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class tc{constructor(){this.subscriptions=[]}add(t){return Ju(this.subscriptions,t),()=>ec(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class _T{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=Ee;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,Q.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Q.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=LT(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new tc);const r=this.events[t].add(n);return t==="change"?()=>{r(),Q.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?_g(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xr(e,t){return new _T(e,t)}const zg=e=>t=>t.test(e),OT={test:e=>e==="auto",parse:e=>e},Bg=[Fn,D,xt,Ft,Uw,Bw,OT],Ir=e=>Bg.find(zg(e)),DT=[...Bg,Ne,an],IT=e=>DT.find(zg(e));function VT(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xr(n))}function FT(e,t){const n=As(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=nS(i[s]);VT(e,s,a)}}function zT(e,t,n){var r,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(d))),u.push(T)}return s&&Promise.all(u).then(()=>{s&&FT(e,s)}),u}function Al(e,t,n={}){const r=As(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Ug(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return WT(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function WT(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(GT).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Al(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function GT(e,t){return e.sortNodePosition(t)}function KT(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Al(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Al(e,t,n);else{const o=typeof t=="function"?As(e,t,n.custom):t;r=Promise.all(Ug(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const QT=[...Du].reverse(),YT=Du.length;function XT(e){return t=>Promise.all(t.map(({animation:n,options:r})=>KT(e,n,r)))}function qT(e){let t=XT(e);const n=JT();let r=!0;const o=(l,u)=>{const c=As(e,u);if(c){const{transition:d,transitionEnd:f,...h}=c;l={...l,...h,...f}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],h=new Set;let x={},y=1/0;for(let g=0;gy&&C,M=!1;const H=Array.isArray(S)?S:[S];let O=H.reduce(o,{});P===!1&&(O={});const{prevResolvedValues:re={}}=m,j={...re,...O},Z=B=>{b=!0,h.has(B)&&(M=!0,h.delete(B)),m.needsAnimating[B]=!0};for(const B in j){const ce=O[B],N=re[B];if(x.hasOwnProperty(B))continue;let L=!1;Xi(ce)&&Xi(N)?L=!dg(ce,N):L=ce!==N,L?ce!==void 0?Z(B):h.add(B):ce!==void 0&&h.has(B)?Z(B):m.protectedKeys[B]=!0}m.prevProp=S,m.prevResolvedValues=O,m.isActive&&(x={...x,...O}),r&&e.blockInitialAnimation&&(b=!1),b&&(!E||M)&&f.push(...H.map(B=>({animation:B,options:{type:p,...l}})))}if(h.size){const g={};h.forEach(p=>{const m=e.getBaseTarget(p);m!==void 0&&(g[p]=m)}),f.push({animation:g})}let T=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,T?t(f):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var x;return(x=h.animationState)===null||x===void 0?void 0:x.setActive(l,u)}),n[l].isActive=u;const f=s(c,l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function ZT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!dg(t,e):!1}function hn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function JT(){return{animate:hn(!0),whileInView:hn(),whileHover:hn(),whileTap:hn(),whileDrag:hn(),whileFocus:hn(),exit:hn()}}class eC extends dn{constructor(t){super(t),t.animationState||(t.animationState=qT(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Cs(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let tC=0;class nC extends dn{constructor(){super(...arguments),this.id=tC++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const rC={animation:{Feature:eC},exit:{Feature:nC}},$d=(e,t)=>Math.abs(e-t);function oC(e,t){const n=$d(e.x,t.x),r=$d(e.y,t.y);return Math.sqrt(n**2+r**2)}class $g{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=pa(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=oC(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:x}=d,{timestamp:y}=Ee;this.history.push({...x,timestamp:y});const{onStart:T,onMove:g}=this.handlers;f||(T&&T(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=fa(f,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:x,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=pa(d.type==="pointercancel"?this.lastMoveEventInfo:fa(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,T),x&&x(d,T)},!sg(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=ks(t),a=fa(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ee;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,pa(a,this.history)),this.removeListeners=tn(Rt(this.contextWindow,"pointermove",this.handlePointerMove),Rt(this.contextWindow,"pointerup",this.handlePointerUp),Rt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ot(this.updatePoint)}}function fa(e,t){return t?{point:t(e.point)}:e}function Hd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pa({point:e},t){return{point:e,delta:Hd(e,Hg(t)),offset:Hd(e,iC(t)),velocity:sC(t,.1)}}function iC(e){return e[0]}function Hg(e){return e[e.length-1]}function sC(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Hg(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>nn(t)));)n--;if(!r)return{x:0,y:0};const i=bt(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ke(e){return e.max-e.min}function Nl(e,t=0,n=.01){return Math.abs(e-t)<=n}function Wd(e,t,n,r=.5){e.origin=r,e.originPoint=ie(t.min,t.max,e.origin),e.scale=Ke(n)/Ke(t),(Nl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ie(n.min,n.max,e.origin)-e.originPoint,(Nl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function to(e,t,n,r){Wd(e.x,t.x,n.x,r?r.originX:void 0),Wd(e.y,t.y,n.y,r?r.originY:void 0)}function Gd(e,t,n){e.min=n.min+t.min,e.max=e.min+Ke(t)}function aC(e,t,n){Gd(e.x,t.x,n.x),Gd(e.y,t.y,n.y)}function Kd(e,t,n){e.min=t.min-n.min,e.max=e.min+Ke(t)}function no(e,t,n){Kd(e.x,t.x,n.x),Kd(e.y,t.y,n.y)}function lC(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ie(n,e,r.max):Math.min(e,n)),e}function Qd(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function uC(e,{top:t,left:n,bottom:r,right:o}){return{x:Qd(e.x,n,o),y:Qd(e.y,t,r)}}function Yd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Po(t.min,t.max-r,e.min):r>o&&(n=Po(e.min,e.max-o,t.min)),sn(0,1,n)}function fC(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Rl=.35;function pC(e=Rl){return e===!1?e=0:e===!0&&(e=Rl),{x:Xd(e,"left","right"),y:Xd(e,"top","bottom")}}function Xd(e,t,n){return{min:qd(e,t),max:qd(e,n)}}function qd(e,t){return typeof e=="number"?e:e[t]||0}const Zd=()=>({translate:0,scale:1,origin:0,originPoint:0}),rr=()=>({x:Zd(),y:Zd()}),Jd=()=>({min:0,max:0}),fe=()=>({x:Jd(),y:Jd()});function qe(e){return[e("x"),e("y")]}function Wg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hC({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mC(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ha(e){return e===void 0||e===1}function bl({scale:e,scaleX:t,scaleY:n}){return!ha(e)||!ha(t)||!ha(n)}function yn(e){return bl(e)||Gg(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Gg(e){return ef(e.x)||ef(e.y)}function ef(e){return e&&e!=="0%"}function ts(e,t,n){const r=e-n,o=t*r;return n+o}function tf(e,t,n,r,o){return o!==void 0&&(e=ts(e,o,r)),ts(e,n,r)+t}function Ml(e,t=0,n=1,r,o){e.min=tf(e.min,t,n,r,o),e.max=tf(e.max,t,n,r,o)}function Kg(e,{x:t,y:n}){Ml(e.x,t.translate,t.scale,t.originPoint),Ml(e.y,n.translate,n.scale,n.originPoint)}function gC(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function Ut(e,t){e.min=e.min+t,e.max=e.max+t}function rf(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=ie(e.min,e.max,i);Ml(e,t[n],t[r],s,t.scale)}const yC=["x","scaleX","originX"],vC=["y","scaleY","originY"];function or(e,t){rf(e.x,t,yC),rf(e.y,t,vC)}function Qg(e,t){return Wg(mC(e.getBoundingClientRect(),t))}function xC(e,t,n){const r=Qg(e,n),{scroll:o}=t;return o&&(Ut(r.x,o.offset.x),Ut(r.y,o.offset.y)),r}const Yg=({current:e})=>e?e.ownerDocument.defaultView:null,wC=new WeakMap;class SC{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=fe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ks(c,"page").point)},i=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:x}=this.getProps();if(f&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=lg(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),qe(T=>{let g=this.getAxisMotionValue(T).get()||0;if(xt.test(g)){const{projection:p}=this.visualElement;if(p&&p.layout){const m=p.layout.layoutBox[T];m&&(g=Ke(m)*(parseFloat(g)/100))}}this.originPoint[T]=g}),x&&Q.update(()=>x(c,d),!1,!0);const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:x,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:T}=d;if(h&&this.currentDirection===null){this.currentDirection=TC(T),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",d.point,T),this.updateAxis("y",d.point,T),this.visualElement.render(),y&&y(c,d)},a=(c,d)=>this.stop(c,d),l=()=>qe(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new $g(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Yg(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Q.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!si(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=lC(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&tr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=uC(o.layoutBox,n):this.constraints=!1,this.elastic=pC(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&qe(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=fC(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!tr(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=xC(r,o.root,this.visualElement.getTransformPagePoint());let s=cC(o.layout.layoutBox,i);if(n){const a=n(hC(s));this.hasMutatedConstraints=!!a,a&&(s=Wg(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=qe(c=>{if(!si(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,x={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,x)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Zu(t,r,0,n))}stopAnimation(){qe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){qe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){qe(n=>{const{drag:r}=this.getProps();if(!si(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ie(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!tr(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};qe(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=dC({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),qe(s=>{if(!si(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ie(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;wC.set(this.visualElement,this);const t=this.visualElement.current,n=Rt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();tr(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=kt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(qe(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Rl,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function si(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function TC(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class CC extends dn{constructor(t){super(t),this.removeGroupControls=ue,this.removeListeners=ue,this.controls=new SC(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ue}unmount(){this.removeGroupControls(),this.removeListeners()}}const of=e=>(t,n)=>{e&&Q.update(()=>e(t,n))};class EC extends dn{constructor(){super(...arguments),this.removePointerDownListener=ue}onPointerDown(t){this.session=new $g(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Yg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:of(t),onStart:of(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Q.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=Rt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function PC(){const e=w.useContext(Ss);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=w.useId();return w.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const Si={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function sf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(D.test(e))e=parseFloat(e);else return e;const n=sf(e,t.target.x),r=sf(e,t.target.y);return`${n}% ${r}%`}},kC={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=an.parse(e);if(o.length>5)return r;const i=an.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=ie(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class AC extends te.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;_w(NC),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Si.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Q.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Xg(e){const[t,n]=PC(),r=w.useContext(Vu);return te.createElement(AC,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(Wm),isPresent:t,safeToRemove:n})}const NC={borderRadius:{...Vr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vr,borderTopRightRadius:Vr,borderBottomLeftRadius:Vr,borderBottomRightRadius:Vr,boxShadow:kC},qg=["TopLeft","TopRight","BottomLeft","BottomRight"],RC=qg.length,af=e=>typeof e=="string"?parseFloat(e):e,lf=e=>typeof e=="number"||D.test(e);function bC(e,t,n,r,o,i){o?(e.opacity=ie(0,n.opacity!==void 0?n.opacity:1,MC(r)),e.opacityExit=ie(t.opacity!==void 0?t.opacity:1,0,jC(r))):i&&(e.opacity=ie(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Po(e,t,r))}function cf(e,t){e.min=t.min,e.max=t.max}function Xe(e,t){cf(e.x,t.x),cf(e.y,t.y)}function df(e,t,n,r,o){return e-=t,e=ts(e,1/n,r),o!==void 0&&(e=ts(e,1/o,r)),e}function LC(e,t=0,n=1,r=.5,o,i=e,s=e){if(xt.test(t)&&(t=parseFloat(t),t=ie(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ie(i.min,i.max,r);e===i&&(a-=t),e.min=df(e.min,t,n,a,o),e.max=df(e.max,t,n,a,o)}function ff(e,t,[n,r,o],i,s){LC(e,t[n],t[r],t[o],t.scale,i,s)}const _C=["x","scaleX","originX"],OC=["y","scaleY","originY"];function pf(e,t,n,r){ff(e.x,t,_C,n?n.x:void 0,r?r.x:void 0),ff(e.y,t,OC,n?n.y:void 0,r?r.y:void 0)}function hf(e){return e.translate===0&&e.scale===1}function Jg(e){return hf(e.x)&&hf(e.y)}function DC(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function ey(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function mf(e){return Ke(e.x)/Ke(e.y)}class IC{constructor(){this.members=[]}add(t){Ju(this.members,t),t.scheduleRender()}remove(t){if(ec(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function gf(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const VC=(e,t)=>e.depth-t.depth;class FC{constructor(){this.children=[],this.isDirty=!1}add(t){Ju(this.children,t),this.isDirty=!0}remove(t){ec(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(VC),this.isDirty=!1,this.children.forEach(t)}}function zC(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Ot(r),e(i-t))};return Q.read(r,!0),()=>Ot(r)}function BC(e){window.MotionDebug&&window.MotionDebug.record(e)}function UC(e){return e instanceof SVGElement&&e.tagName!=="svg"}function $C(e,t,n){const r=Fe(e)?e:xr(e);return r.start(Zu("",r,t,n)),r.animation}const yf=["","X","Y","Z"],HC={visibility:"hidden"},vf=1e3;let WC=0;const vn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ty({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=WC++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,vn.totalNodes=vn.resolvedTargetDeltas=vn.recalculatedProjection=0,this.nodes.forEach(QC),this.nodes.forEach(JC),this.nodes.forEach(eE),this.nodes.forEach(YC),BC(vn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=zC(f,250),Si.hasAnimatedSinceResize&&(Si.hasAnimatedSinceResize=!1,this.nodes.forEach(wf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||iE,{onLayoutAnimationStart:T,onLayoutAnimationComplete:g}=c.getProps(),p=!this.targetLayout||!ey(this.targetLayout,x)||h,m=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const S={...qu(y,"layout"),onPlay:T,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||wf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ot(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tE),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(XC),this.sharedNodes.forEach(nE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Q.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Q.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const C=S/1e3;Sf(d.x,s.x,C),Sf(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(no(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rE(this.relativeTarget,this.relativeTargetOrigin,f,C),m&&DC(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=fe()),Xe(m,this.relativeTarget)),y&&(this.animationValues=c,bC(c,u,this.latestValues,C,p,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{Si.hasAnimatedSinceResize=!0,this.currentAnimation=$C(0,vf,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(vf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&ny(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||fe();const d=Ke(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Ke(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Xe(a,l),or(a,c),to(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new IC),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(xf),this.root.sharedNodes.clear()}}}function GC(e){e.updateLayout()}function KC(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?qe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=Ke(f);f.min=r[d].min,f.max=f.min+h}):ny(i,n.layoutBox,r)&&qe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=Ke(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const a=rr();to(a,r,n.layoutBox);const l=rr();s?to(l,e.applyTransform(o,!0),n.measuredBox):to(l,r,n.layoutBox);const u=!Jg(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const x=fe();no(x,n.layoutBox,f.layoutBox);const y=fe();no(y,r,h.layoutBox),ey(x,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=x,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function QC(e){vn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function YC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function XC(e){e.clearSnapshot()}function xf(e){e.clearMeasurements()}function qC(e){e.isLayoutDirty=!1}function ZC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function wf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function JC(e){e.resolveTargetDelta()}function eE(e){e.calcProjection()}function tE(e){e.resetRotation()}function nE(e){e.removeLeadSnapshot()}function Sf(e,t,n){e.translate=ie(t.translate,0,n),e.scale=ie(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Tf(e,t,n,r){e.min=ie(t.min,n.min,r),e.max=ie(t.max,n.max,r)}function rE(e,t,n,r){Tf(e.x,t.x,n.x,r),Tf(e.y,t.y,n.y,r)}function oE(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const iE={duration:.45,ease:[.4,0,.1,1]},Cf=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Ef=Cf("applewebkit/")&&!Cf("chrome/")?Math.round:ue;function Pf(e){e.min=Ef(e.min),e.max=Ef(e.max)}function sE(e){Pf(e.x),Pf(e.y)}function ny(e,t,n){return e==="position"||e==="preserve-aspect"&&!Nl(mf(t),mf(n),.2)}const aE=ty({attachResizeListener:(e,t)=>kt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ma={current:void 0},ry=ty({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ma.current){const e=new aE({});e.mount(window),e.setOptions({layoutScroll:!0}),ma.current=e}return ma.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),lE={pan:{Feature:EC},drag:{Feature:CC,ProjectionNode:ry,MeasureLayout:Xg}},uE=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function cE(e){const t=uE.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function jl(e,t,n=1){const[r,o]=cE(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Fg(s)?parseFloat(s):s}else return Sl(o)?jl(o,t,n+1):o}function dE(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!Sl(i))return;const s=jl(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!Sl(i))continue;const s=jl(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const fE=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),oy=e=>fE.has(e),pE=e=>Object.keys(e).some(oy),kf=e=>e===Fn||e===D,Af=(e,t)=>parseFloat(e.split(", ")[t]),Nf=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Af(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?Af(i[1],e):0}},hE=new Set(["x","y","z"]),mE=jo.filter(e=>!hE.has(e));function gE(e){const t=[];return mE.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const wr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Nf(4,13),y:Nf(5,14)};wr.translateX=wr.x;wr.translateY=wr.y;const yE=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=wr[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=wr[u](l,i)}),e},vE=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(oy);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=Ir(c);const f=t[l];let h;if(Xi(f)){const x=f.length,y=f[0]===null?1:0;c=f[y],d=Ir(c);for(let T=y;T=0?window.pageYOffset:null,u=yE(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Ts&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function xE(e,t,n,r){return pE(t)?vE(e,t,n,r):{target:t,transitionEnd:r}}const wE=(e,t,n,r)=>{const o=dE(e,t,r);return t=o.target,r=o.transitionEnd,xE(e,t,n,r)},Ll={current:null},iy={current:!1};function SE(){if(iy.current=!0,!!Ts)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ll.current=e.matches;e.addListener(t),t()}else Ll.current=!1}function TE(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(Fe(i))e.addValue(o,i),es(r)&&r.add(o);else if(Fe(s))e.addValue(o,xr(i,{owner:e})),es(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,xr(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Rf=new WeakMap,sy=Object.keys(Eo),CE=sy.length,bf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],EE=Iu.length;class PE{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Q.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Es(n),this.isVariantNode=Hm(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const f=c[d];a[d]!==void 0&&Fe(f)&&(f.set(a[d],!1),es(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Rf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),iy.current||SE(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ll.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Rf.delete(this.current),this.projection&&this.projection.unmount(),Ot(this.notifyUpdate),Ot(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Vn.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Q.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:h})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):fe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=xr(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=Wu(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Fe(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new tc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class ay extends PE{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=UT(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){zT(this,r,s);const a=wE(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function kE(e){return window.getComputedStyle(e)}class AE extends ay{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Vn.has(n)){const r=Xu(n);return r&&r.default||0}else{const r=kE(t),o=(Qm(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Qg(t,n)}build(t,n,r,o){zu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Hu(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Fe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){eg(t,n,r,o)}}class NE extends ay{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vn.has(n)){const r=Xu(n);return r&&r.default||0}return n=tg.has(n)?n:Ou(n),t.getAttribute(n)}measureInstanceViewportBox(){return fe()}scrapeMotionValuesFromProps(t,n){return rg(t,n)}build(t,n,r,o){Uu(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){ng(t,n,r,o)}mount(t){this.isSVGTag=$u(t.tagName),super.mount(t)}}const RE=(e,t)=>Fu(e)?new NE(t,{enableHardwareAcceleration:!1}):new AE(t,{enableHardwareAcceleration:!0}),bE={layout:{ProjectionNode:ry,MeasureLayout:Xg}},ME={...rC,...CS,...lE,...bE},At=jw((e,t)=>cS(e,t,ME,RE));function ly(){const e=w.useRef(!1);return _u(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function jE(){const e=ly(),[t,n]=w.useState(0),r=w.useCallback(()=>{e.current&&n(t+1)},[t]);return[w.useCallback(()=>Q.postRender(r),[r]),t]}class LE extends w.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function _E({children:e,isPresent:t}){const n=w.useId(),r=w.useRef(null),o=w.useRef({width:0,height:0,top:0,left:0});return w.useInsertionEffect(()=>{const{width:i,height:s,top:a,left:l}=o.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${i}px !important; height: ${s}px !important; top: ${a}px !important; left: ${l}px !important; } `),()=>{document.head.removeChild(u)}},[t]),w.createElement(LE,{isPresent:t,childRef:r,sizeRef:o},w.cloneElement(e,{ref:r}))}const ga=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=og(OE),l=w.useId(),u=w.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?void 0:[n]);return w.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),w.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=w.createElement(_E,{isPresent:n},e)),w.createElement(Ss.Provider,{value:u},e)};function OE(){return new Map}function DE(e){return w.useEffect(()=>()=>e(),[])}const xn=e=>e.key||"";function IE(e,t){e.forEach(n=>{const r=xn(n);t.set(r,n)})}function VE(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const uy=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=w.useContext(Vu).forceRender||jE()[0],l=ly(),u=VE(e);let c=u;const d=w.useRef(new Map).current,f=w.useRef(c),h=w.useRef(new Map).current,x=w.useRef(!0);if(_u(()=>{x.current=!1,IE(u,h),f.current=c}),DE(()=>{x.current=!0,h.clear(),d.clear()}),x.current)return w.createElement(w.Fragment,null,c.map(p=>w.createElement(ga,{key:xn(p),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s},p)));c=[...c];const y=f.current.map(xn),T=u.map(xn),g=y.length;for(let p=0;p{if(T.indexOf(m)!==-1)return;const S=h.get(m);if(!S)return;const C=y.indexOf(m);let P=p;if(!P){const E=()=>{d.delete(m);const k=Array.from(h.keys()).filter(b=>!T.includes(b));if(k.forEach(b=>h.delete(b)),f.current=u.filter(b=>{const M=xn(b);return M===m||k.includes(M)}),!d.size){if(l.current===!1)return;a(),r&&r()}};P=w.createElement(ga,{key:xn(S),isPresent:!1,onExitComplete:E,custom:t,presenceAffectsLayout:i,mode:s},S),d.set(m,P)}c.splice(C,0,P)}),c=c.map(p=>{const m=p.key;return d.has(m)?p:w.createElement(ga,{key:xn(p),isPresent:!0,presenceAffectsLayout:i,mode:s},p)}),w.createElement(w.Fragment,null,d.size?c:c.map(p=>w.cloneElement(p)))};function FE({items:e,className:t,scrollToSection:n}){const[r,o]=w.useState(e[0].name),[i,s]=w.useState(!1);w.useEffect(()=>{const l=()=>{s(window.innerWidth<768)};return l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[]);const a=()=>{const l=window.scrollY+150;let u=e[0].name;e.forEach(c=>{const d=document.getElementById(c.sectionId);d&&d.offsetTop<=l&&(u=c.name)}),o(u)};return w.useEffect(()=>(window.addEventListener("scroll",a),()=>{window.removeEventListener("scroll",a)}),[e]),v.jsx("div",{className:pt("fixed top-0 z-50 mt-6",t),children:v.jsx("div",{className:"flex items-center gap-1 bg-white/50 border border-gray-200/80 backdrop-blur-lg py-1 px-1 rounded-full shadow-lg",children:e.map((l,u)=>{const c=l.icon,d=r===l.name;return v.jsxs(te.Fragment,{children:[v.jsxs("button",{onClick:()=>{o(l.name),n(l.sectionId)},className:pt("relative cursor-pointer text-sm font-semibold px-4 py-2 rounded-full transition-colors","text-gray-600 hover:text-[#E3342F]",d&&"text-[#E3342F]"),children:[v.jsx("span",{className:"hidden md:inline",children:l.name}),v.jsx("span",{className:"md:hidden",children:v.jsx(c,{size:18,strokeWidth:2.5})}),d&&v.jsx(At.div,{layoutId:"lamp",className:"absolute inset-0 w-full bg-[#E3342F]/5 rounded-full -z-10",initial:!1,transition:{type:"spring",stiffness:300,damping:30},children:v.jsxs("div",{className:"absolute -top-2 left-1/2 -translate-x-1/2 w-8 h-1 bg-[#E3342F] rounded-t-full",children:[v.jsx("div",{className:"absolute w-12 h-6 bg-[#E3342F]/20 rounded-full blur-md -top-2 -left-2"}),v.jsx("div",{className:"absolute w-8 h-6 bg-[#E3342F]/20 rounded-full blur-md -top-1"}),v.jsx("div",{className:"absolute w-4 h-4 bg-[#E3342F]/20 rounded-full blur-sm top-0 left-2"})]})})]}),l.name==="Benefícios"&&v.jsx("img",{src:"https://horizons-cdn.hostinger.com/1273609e-194f-4c3d-9baa-a374dd640a85/logo-grupo-2C0iZ.png",alt:"INDICA+ Logo",className:"h-8 mx-2"})]},l.name)})})})}const zE=({scrollToSection:e})=>{const t=[{name:"Início",sectionId:"inicio",icon:aw},{name:"Como funciona",sectionId:"como-funciona",icon:hw},{name:"Benefícios",sectionId:"beneficios",icon:Lm},{name:"Quem participa",sectionId:"quem-participa",icon:Lu},{name:"Indicar",sectionId:"indicar",icon:cw},{name:"FAQ",sectionId:"faq",icon:sw}];return v.jsx("div",{className:"w-full flex justify-center",children:v.jsx(FE,{items:t,scrollToSection:e})})},BE=jm("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),nc=te.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?lx:"button";return v.jsx(s,{className:pt(BE({variant:t,size:n,className:e})),ref:i,...o})});nc.displayName="Button";function UE({buttonRef:e}){var o;const t=(o=e.current)==null?void 0:o.getBoundingClientRect();if(!t)return null;const n=t.left+t.width/2,r=t.top+t.height/2;return v.jsx(uy,{children:[...Array(6)].map((i,s)=>v.jsx(At.div,{className:"fixed w-1 h-1 bg-black dark:bg-white rounded-full",style:{left:n,top:r,zIndex:9999},initial:{scale:0,x:0,y:0},animate:{scale:[0,1,0],x:[0,(s%2?1:-1)*(Math.random()*50+20)],y:[0,-Math.random()*50-20]},transition:{duration:.6,delay:s*.1,ease:"easeOut"}},s))})}function $E({children:e,onClick:t,onSuccess:n,successDuration:r=1e3,className:o,...i}){const[s,a]=w.useState(!1),l=w.useRef(null),u=async c=>{a(!0),t&&t(c),setTimeout(()=>{a(!1)},r)};return v.jsxs(v.Fragment,{children:[s&&v.jsx(UE,{buttonRef:l}),v.jsxs(nc,{ref:l,onClick:u,className:pt("relative",s&&"scale-95","transition-transform duration-100",o),...i,children:[e,v.jsx(uw,{className:"h-4 w-4 ml-2"})]})]})}const HE=({scrollToSection:e})=>v.jsx("section",{id:"inicio",className:"hero-section pt-20",children:v.jsx("div",{className:"container-custom z-10",children:v.jsxs(At.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center",children:[v.jsx("div",{className:"mb-6 flex justify-center",children:v.jsx("img",{src:"https://horizons-cdn.hostinger.com/1273609e-194f-4c3d-9baa-a374dd640a85/d745e15c396f976de7d6b629fc80957e.png",alt:"INDICA+ Logo",className:"h-12 lg:h-14"})}),v.jsxs(At.h1,{className:"text-5xl lg:text-7xl font-black uppercase mb-4 leading-tight",style:{letterSpacing:"-0.02em",lineHeight:"1.1"},initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2,duration:.8},children:[v.jsx("div",{style:{color:"#112A60"},children:"VALORIZE"}),v.jsxs("div",{style:{color:"#112A60"},children:["SUAS ",v.jsx("span",{style:{color:"#E3342F"},children:"CONEXÕES"})]})]}),v.jsx(At.p,{className:"text-base max-w-lg mx-auto mb-8",style:{color:"#6B7280"},initial:{opacity:0},animate:{opacity:1},transition:{delay:.4,duration:.8},children:"Indique e receba comissões sem burocracia, 100% online."}),v.jsx(At.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6,duration:.8},children:v.jsx($E,{onClick:()=>e("como-funciona"),className:"btn-primary-particle",children:"SAIBA COMO"})})]})})}),WE=({scrollToSection:e})=>{const t=[{icon:fw,text:"Cadastre-se"},{icon:lw,text:"Receba o link da plataforma"},{icon:Lu,text:"Indique drogarias que queiram crescer com a CB"},{icon:iw,text:"Ganhe até R$1.500,00 por cada drogaria que fechar"}];return v.jsx("section",{id:"como-funciona",style:{background:"#0E2A63"},className:"py-16 lg:py-24",children:v.jsxs("div",{className:"container-custom",children:[v.jsxs("div",{className:"text-center mb-12 fade-up",children:[v.jsx("h2",{className:"text-3xl lg:text-4xl font-black text-white uppercase",children:"COMO FUNCIONA?"}),v.jsx("p",{className:"text-lg font-bold",style:{color:"#FFD100"},children:"É rápido e intuitivo"})]}),v.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-12",children:t.map((n,r)=>v.jsxs("div",{className:"step-card-new fade-up",style:{animationDelay:`${r*.15}s`},children:[v.jsx(n.icon,{size:32,style:{color:"#FFD100"},className:"flex-shrink-0"}),v.jsx("p",{className:"text-white font-semibold text-base",children:n.text})]},r))}),v.jsx("div",{className:"text-center fade-up",children:v.jsx("button",{className:"btn-primary",onClick:()=>e("indicar"),children:"QUERO INDICAR"})})]})})},ya=({children:e,className:t})=>{const n=w.useRef(!1),r=w.useRef(null),o=w.useRef({glare:{x:50,y:50},background:{x:50,y:50},rotate:{x:0,y:0}}),i={"--m-x":"50%","--m-y":"50%","--r-x":"0deg","--r-y":"0deg","--bg-x":"50%","--bg-y":"50%","--duration":"300ms","--foil-size":"100%","--opacity":"0","--radius":"16px","--easing":"ease","--transition":"var(--duration) var(--easing)"},s={"--step":"5%","--foil-svg":`url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.99994 3.419C2.99994 3.419 21.6142 7.43646 22.7921 12.153C23.97 16.8695 3.41838 23.0306 3.41838 23.0306' stroke='white' stroke-width='5' stroke-miterlimit='3.86874' stroke-linecap='round' style='mix-blend-mode:darken'/%3E%3C/svg%3E")`,"--pattern":"var(--foil-svg) center/100% no-repeat","--rainbow":"repeating-linear-gradient( 0deg,rgb(255,119,115) calc(var(--step) * 1),rgba(255,237,95,1) calc(var(--step) * 2),rgba(168,255,95,1) calc(var(--step) * 3),rgba(131,255,247,1) calc(var(--step) * 4),rgba(120,148,255,1) calc(var(--step) * 5),rgb(216,117,255) calc(var(--step) * 6),rgb(255,119,115) calc(var(--step) * 7) ) 0% var(--bg-y)/200% 700% no-repeat","--diagonal":"repeating-linear-gradient( 128deg,#0e152e 0%,hsl(180,10%,60%) 3.8%,hsl(180,10%,60%) 4.5%,hsl(180,10%,60%) 5.2%,#0e152e 10%,#0e152e 12% ) var(--bg-x) var(--bg-y)/300% no-repeat","--shade":"radial-gradient( farthest-corner circle at var(--m-x) var(--m-y),rgba(255,255,255,0.1) 12%,rgba(255,255,255,0.15) 20%,rgba(255,255,255,0.25) 120% ) var(--bg-x) var(--bg-y)/300% no-repeat",backgroundBlendMode:"hue, hue, hue, overlay"},a=()=>{var l,u,c,d,f,h;if(r.current){const{background:x,rotate:y,glare:T}=o.current;(l=r.current)==null||l.style.setProperty("--m-x",`${T.x}%`),(u=r.current)==null||u.style.setProperty("--m-y",`${T.y}%`),(c=r.current)==null||c.style.setProperty("--r-x",`${y.x}deg`),(d=r.current)==null||d.style.setProperty("--r-y",`${y.y}deg`),(f=r.current)==null||f.style.setProperty("--bg-x",`${x.x}%`),(h=r.current)==null||h.style.setProperty("--bg-y",`${x.y}%`)}};return v.jsx("div",{style:i,className:"relative isolate [contain:layout_style] [perspective:600px] transition-transform duration-[var(--duration)] ease-[var(--easing)] delay-[var(--delay)] will-change-transform w-full h-full",ref:r,onPointerMove:l=>{const c=l.currentTarget.getBoundingClientRect(),d={x:l.clientX-c.left,y:l.clientY-c.top},f={x:100/c.width*d.x,y:100/c.height*d.y},h={x:f.x-50,y:f.y-50},{background:x,rotate:y,glare:T}=o.current;x.x=50+f.x/4-12.5,x.y=50+f.y/3-16.67,y.x=-(h.x/3.5),y.y=h.y/2,y.x*=.4,y.y*=.4,T.x=f.x,T.y=f.y,a()},onPointerEnter:()=>{n.current=!0,r.current&&setTimeout(()=>{var l;n.current&&((l=r.current)==null||l.style.setProperty("--duration","0s"))},300)},onPointerLeave:()=>{var l,u;n.current=!1,r.current&&(r.current.style.removeProperty("--duration"),(l=r.current)==null||l.style.setProperty("--r-x","0deg"),(u=r.current)==null||u.style.setProperty("--r-y","0deg"))},children:v.jsxs("div",{className:"h-full grid will-change-transform origin-center transition-transform duration-[var(--duration)] ease-[var(--easing)] delay-[var(--delay)] [transform:rotateY(var(--r-x))_rotateX(var(--r-y))] rounded-[var(--radius)] border border-slate-800/20 hover:[--opacity:0.4] hover:[--duration:200ms] hover:[--easing:linear] hover:filter-none overflow-hidden",children:[v.jsx("div",{className:"w-full h-full grid [grid-area:1/1] mix-blend-soft-light [clip-path:inset(0_0_0_0_round_var(--radius))]",children:v.jsx("div",{className:pt("h-full w-full",t),children:e})}),v.jsx("div",{className:"w-full h-full grid [grid-area:1/1] mix-blend-soft-light [clip-path:inset(0_0_1px_0_round_var(--radius))] opacity-[var(--opacity)] transition-opacity transition-background duration-[var(--duration)] ease-[var(--easing)] delay-[var(--delay)] will-change-background [background:radial-gradient(farthest-corner_circle_at_var(--m-x)_var(--m-y),_rgba(255,255,255,0.4)_10%,_rgba(255,255,255,0.3)_20%,_rgba(255,255,255,0)_90%)]"}),v.jsx("div",{className:"w-full h-full grid [grid-area:1/1] mix-blend-color-dodge opacity-[var(--opacity)] will-change-background transition-opacity [clip-path:inset(0_0_1px_0_round_var(--radius))] [background-blend-mode:hue_hue_hue_overlay] [background:var(--pattern),_var(--rainbow),_var(--diagonal),_var(--shade)] relative after:content-[''] after:grid-area-[inherit] after:bg-repeat-[inherit] after:bg-attachment-[inherit] after:bg-origin-[inherit] after:bg-clip-[inherit] after:bg-[inherit] after:mix-blend-exclusion after:[background-size:var(--foil-size),_200%_400%,_800%,_200%] after:[background-position:center,_0%_var(--bg-y),_calc(var(--bg-x)*_-1)_calc(var(--bg-y)*_-1),_var(--bg-x)_var(--bg-y)] after:[background-blend-mode:soft-light,_hue,_hard-light]",style:{...s}})]})})},GE=({scrollToSection:e})=>v.jsx("section",{id:"beneficios",className:"py-16",children:v.jsxs("div",{className:"container-custom",children:[v.jsxs("div",{className:"text-center mb-12 fade-up",children:[v.jsx("h2",{className:"text-xl lg:text-2xl font-bold mb-4",style:{color:"#112A60"},children:"Transforme suas conexões em renda recorrente com suporte de ponta!"}),v.jsx("p",{className:"text-xl",style:{color:"#112A60"},children:"Receba até"}),v.jsx("div",{className:"text-6xl lg:text-8xl font-black",style:{color:"#0A1F4D"},children:"R$1.500,00"}),v.jsx("p",{className:"text-xl mt-2",style:{color:"#112A60"},children:"por indicação aprovada"})]}),v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mb-12",children:[v.jsxs(ya,{className:"benefit-card blue fade-up",children:[v.jsx(Lm,{size:32,className:"mb-4"}),v.jsx("h3",{className:"font-black uppercase text-lg mb-2",children:"MARCA QUE CONVERTE"}),v.jsx("p",{className:"font-medium text-sm text-white/80",children:"Mais de 18 estados com 350+ lojas e alta taxa de fechamento."})]}),v.jsxs(ya,{className:"benefit-card red fade-up",style:{animationDelay:"0.2s"},children:[v.jsx(dw,{size:32,className:"mb-4"}),v.jsx("h3",{className:"font-black uppercase text-lg mb-2",children:"SUPORTE 360°"}),v.jsx("p",{className:"font-medium text-sm text-white/80",children:"Materiais prontos, playbook e equipe dedicada para te ajudar."})]}),v.jsxs(ya,{className:"benefit-card yellow fade-up",style:{animationDelay:"0.4s"},children:[v.jsx(_m,{size:32,className:"mb-4"}),v.jsx("h3",{className:"font-black uppercase text-lg mb-2",children:"SEM CUSTO E EXCLUSIVIDADE"}),v.jsx("p",{className:"font-medium text-sm text-blue-900/80",children:"Participe sem taxas e continue atuando com outras fontes de renda."})]})]}),v.jsx("div",{className:"text-center fade-up",children:v.jsx("button",{className:"btn-primary",onClick:()=>e("indicar"),children:"QUERO INDICAR"})})]})}),KE=({scrollToSection:e})=>{const t=[{icon:Lu,title:"Consultores e Assessores de Negócios",desc:"Profissionais com experiência em consultoria empresarial"},{icon:pw,title:"Representantes comerciais e vendedores",desc:"Vendedores com boa rede de relacionamento"},{icon:_m,title:"Profissionais de marketing e comunicação",desc:"Especialistas em comunicação e marketing digital"},{icon:tw,title:"Pessoas com boa rede de contatos",desc:"Qualquer pessoa com networking no setor farmacêutico"}];return v.jsx("section",{id:"quem-participa",className:"py-16",children:v.jsx("div",{className:"container-custom",children:v.jsx("div",{className:"rounded-3xl p-8 lg:p-12 card-shadow fade-up",style:{background:"#0E2A63"},children:v.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[v.jsxs("div",{className:"order-2 lg:order-1",children:[v.jsx("h2",{className:"text-3xl lg:text-4xl font-black text-white mb-8 uppercase",children:"Quem pode participar?"}),v.jsx("div",{className:"space-y-3",children:t.map((n,r)=>v.jsxs("div",{className:"participant-card-small",children:[v.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0",style:{background:"#E3342F"},children:v.jsx(n.icon,{size:20,style:{color:"#FFFFFF"}})}),v.jsxs("div",{children:[v.jsx("h3",{className:"font-semibold text-white text-sm mb-1",children:n.title}),v.jsx("p",{className:"text-white/80 text-xs",children:n.desc})]})]},r))}),v.jsx("div",{className:"mt-8",children:v.jsx("button",{className:"btn-primary",onClick:()=>e("indicar"),children:"QUERO INDICAR"})})]}),v.jsx("div",{className:"order-1 lg:order-2 text-center",children:v.jsx("img",{alt:"Profissional farmacêutico sorrindo",className:"w-full max-w-xl mx-auto rounded-2xl",src:"https://horizons-cdn.hostinger.com/1273609e-194f-4c3d-9baa-a374dd640a85/mulher-sorrindo-dRAz3.png"})})]})})})})};function QE({children:e,...t}){return v.jsxs(nc,{className:"group relative overflow-hidden w-full text-white uppercase font-bold py-3 rounded-lg transition-colors",...t,children:[v.jsx("span",{className:"mr-8 transition-opacity duration-500 group-hover:opacity-0",children:e}),v.jsx("i",{className:"absolute right-1 top-1 bottom-1 rounded-md z-10 grid w-1/4 place-items-center transition-all duration-500 bg-white/15 group-hover:w-[calc(100%-0.5rem)] group-active:scale-95 text-white",children:v.jsx(ow,{size:16,strokeWidth:2,"aria-hidden":"true"})})]})}const YE=({setFormSubmitted:e})=>{const[t,n]=w.useState({nome_razao_social:"",cpf_cnpj:"",rg_ie:"",numero:"",email:"",endereco:"",cidade:"",estado:"",cep:""}),{toast:r}=zm(),o=["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"],i=async c=>{const d=c.replace(/\D/g,"");if(d.length===8)try{const h=await(await fetch(`https://viacep.com.br/ws/${d}/json/`)).json();h.erro||n(x=>({...x,endereco:h.logradouro||"",cidade:h.localidade||"",estado:h.uf||""}))}catch(f){console.error("Erro ao buscar CEP:",f),r({title:"Erro",description:"Não foi possível buscar o CEP.",variant:"destructive"})}},s=(c,d)=>{n(f=>({...f,[c]:d}))},a=c=>{i(c.target.value)},l=()=>Object.values(t).every(c=>c.trim()!==""),u=async c=>{if(c.preventDefault(),!l()){r({title:"Campos obrigatórios",description:"Por favor, preencha todos os campos.",variant:"destructive"});return}try{if(!(await fetch("https://hooks.zapier.com/hooks/catch/15284596/u1i0vbj/",{method:"POST",body:JSON.stringify(t)})).ok)throw new Error("Falha ao enviar para o webhook");console.log("Dados do formulário enviados para o webhook:",t),e(!0),setTimeout(()=>{e(!1),n({nome_razao_social:"",cpf_cnpj:"",rg_ie:"",numero:"",email:"",endereco:"",cidade:"",estado:"",cep:""})},6e3),r({title:"Sucesso!",description:"Formulário enviado! Entraremos em contato em breve.",className:"bg-green-500 text-white"})}catch(d){console.error("Erro ao enviar formulário:",d),r({title:"Erro no Envio",description:"Não foi possível enviar seus dados. Tente novamente mais tarde.",variant:"destructive"})}};return v.jsx("section",{id:"indicar",className:"py-16 flex items-center justify-center",children:v.jsx("div",{className:"container-custom",children:v.jsxs("div",{className:"max-w-lg mx-auto",children:[v.jsxs("div",{className:"text-center mb-8 fade-up",children:[v.jsx("h2",{className:"text-4xl font-black uppercase whitespace-nowrap",style:{color:"#0d1b4c",textShadow:"2px 2px 4px rgba(0,0,0,0.1)"},children:"ENTRE PARA O TIME"}),v.jsx("p",{className:"text-lg mt-2",style:{color:"#e63946"},children:"Preencha o formulário e aguarde o contato"})]}),v.jsx("div",{className:"p-8 rounded-2xl shadow-lg fade-up",style:{background:"#0d1b4c"},children:v.jsxs("form",{onSubmit:u,className:"space-y-4",children:[v.jsx("div",{children:v.jsx("input",{type:"text",placeholder:"Nome/Razão Social",className:"form-input-new",value:t.nome_razao_social,onChange:c=>s("nome_razao_social",c.target.value),required:!0})}),v.jsxs("div",{className:"flex gap-4",children:[v.jsx("input",{type:"text",placeholder:"CPF/CNPJ",className:"form-input-new w-1/2",value:t.cpf_cnpj,onChange:c=>s("cpf_cnpj",c.target.value),required:!0}),v.jsx("input",{type:"text",placeholder:"RG/IE",className:"form-input-new w-1/2",value:t.rg_ie,onChange:c=>s("rg_ie",c.target.value),required:!0})]}),v.jsxs("div",{className:"flex gap-4",children:[v.jsx("input",{type:"text",placeholder:"Número de Telefone",className:"form-input-new w-1/2",value:t.numero,onChange:c=>s("numero",c.target.value),required:!0}),v.jsx("input",{type:"email",placeholder:"Email",className:"form-input-new w-1/2",value:t.email,onChange:c=>s("email",c.target.value),required:!0})]}),v.jsx("div",{children:v.jsx("input",{type:"text",placeholder:"Endereço",className:"form-input-new",value:t.endereco,onChange:c=>s("endereco",c.target.value),required:!0})}),v.jsxs("div",{className:"flex flex-wrap md:flex-nowrap gap-4",children:[v.jsx("input",{type:"text",placeholder:"Cidade",className:"form-input-new w-full md:w-1/3",value:t.cidade,onChange:c=>s("cidade",c.target.value),required:!0}),v.jsxs("select",{className:"form-input-new w-full md:w-1/3",value:t.estado,onChange:c=>s("estado",c.target.value),required:!0,children:[v.jsx("option",{value:"",children:"Estado"}),o.map(c=>v.jsx("option",{value:c,children:c},c))]}),v.jsx("input",{type:"text",placeholder:"CEP",className:"form-input-new w-full md:w-1/3",value:t.cep,onChange:c=>s("cep",c.target.value),onBlur:a,maxLength:9,required:!0})]}),v.jsx(QE,{type:"submit",style:{background:"#E3342F"},children:"ENVIAR"})]})})]})})})},XE=()=>{const[e,t]=w.useState(null),n=[{question:"Como funciona o Programa de Indicação?",answer:"Você se cadastra na plataforma, recebe seu link exclusivo e indica farmácias interessadas em crescer com o Grupo CB. Para cada indicação aprovada, você recebe até R$1.500."},{question:"Como acompanho minhas indicações?",answer:"Através da plataforma online você pode acompanhar o status de todas as suas indicações em tempo real, desde o primeiro contato até a aprovação final."},{question:"Qual a forma de pagamento?",answer:"O pagamento é feito via PIX ou transferência bancária após a aprovação e efetivação da indicação, seguindo nosso cronograma de pagamentos."},{question:"Existe limite de indicações?",answer:"Não há limite! Quanto mais você indicar, maior será sua renda. O programa foi criado para recompensar sua rede de contatos sem restrições."}];return v.jsx("section",{id:"faq",className:"py-16",children:v.jsxs("div",{className:"container-custom",children:[v.jsx("div",{className:"text-center mb-12 fade-up",children:v.jsx("h2",{className:"text-3xl lg:text-4xl font-black",style:{color:"#112A60"},children:"Perguntas frequentes"})}),v.jsx("div",{className:"max-w-3xl mx-auto",children:n.map((r,o)=>v.jsxs("div",{className:"accordion-item fade-up",style:{animationDelay:`${o*.1}s`},children:[v.jsxs("div",{className:"accordion-header",onClick:()=>t(e===o?null:o),children:[v.jsx("span",{children:r.question}),v.jsx(rw,{size:20,className:`transition-transform duration-200 ${e===o?"rotate-180":""}`})]}),v.jsx("div",{className:`accordion-content ${e===o?"open":""}`,children:v.jsx("div",{className:"accordion-body",children:r.answer})})]},o))})]})})},qE=({scrollToSection:e})=>v.jsx("section",{className:"py-16",style:{background:"#0E2A63"},children:v.jsx("div",{className:"container-custom text-center",children:v.jsxs("div",{className:"fade-up",children:[v.jsx("h2",{className:"text-3xl lg:text-4xl font-black text-white mb-4",children:"PRONTO PARA COMEÇAR?"}),v.jsx("p",{className:"text-white/80 text-lg mb-8",children:"Conecte farmácias ao Grupo CB e ganhe até R$1.500 por cada nova loja."}),v.jsx("button",{className:"bg-yellow-400 text-blue-900 font-bold py-4 px-8 rounded-full hover:bg-yellow-500 transition-all duration-200 transform hover:scale-105",onClick:()=>e("indicar"),children:"QUERO INDICAR"})]})})}),ZE=()=>v.jsx("footer",{id:"contato",className:"py-12 bg-white",children:v.jsxs("div",{className:"container-custom text-center",children:[v.jsxs("div",{className:"flex justify-center items-center gap-8 mb-8",children:[v.jsx("img",{alt:"Logo Febrafar",class:"h-12",src:"https://horizons-cdn.hostinger.com/1273609e-194f-4c3d-9baa-a374dd640a85/logo-grupo-zLOUd.png"}),v.jsx("img",{alt:"Logo UNINTER",class:"h-12",src:"https://horizons-cdn.hostinger.com/1273609e-194f-4c3d-9baa-a374dd640a85/indica-QP38N.png"})]}),v.jsx("div",{className:"w-full h-px bg-gray-200 mb-6"}),v.jsx("p",{className:"text-gray-500 text-xs",children:"© Copyright 2025 Grupo CB Drogarias – Todos os direitos reservados."})]})}),JE=({x:e,y:t,rotate:n,color:r,duration:o,delay:i})=>v.jsx(At.div,{className:"confetti-piece",style:{left:`${e}%`,backgroundColor:r,width:`${Math.random()*8+6}px`,height:`${Math.random()*8+6}px`},initial:{top:"-10%",opacity:1},animate:{top:"110%",x:`${Math.random()*100-50}px`,rotate:n},transition:{duration:o,delay:i,ease:"linear"}}),eP=()=>{const t=["#E3342F","#FFD100","#0E2A63","#FFFFFF"];return v.jsx("div",{className:"confetti-container",children:Array.from({length:150}).map((n,r)=>v.jsx(JE,{x:Math.random()*100,rotate:Math.random()*360,color:t[Math.floor(Math.random()*t.length)],duration:Math.random()*3+4,delay:Math.random()*2},r))})},tP=()=>v.jsx(At.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 flex items-center justify-center z-[100]",children:v.jsxs(At.div,{initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",stiffness:260,damping:20},className:"bg-[#0d1b4c] text-white p-8 rounded-2xl text-center shadow-2xl max-w-sm w-full",children:[v.jsx(nw,{className:"w-16 h-16 mx-auto text-green-500 mb-4"}),v.jsx("h2",{className:"text-2xl font-black uppercase",children:"Enviado para Análise"}),v.jsx("p",{className:"text-white/80 mt-2",children:"Entraremos em contato em breve."})]})}),nP=()=>{const e=Array.from({length:50});return v.jsx("div",{className:"particle-animation",children:e.map((t,n)=>{const r=Math.random()*3+1;return v.jsx("div",{className:"particle",style:{left:`${Math.random()*100}%`,width:`${r}px`,height:`${r}px`,animationDuration:`${Math.random()*10+10}s`,animationDelay:`${Math.random()*10}s`}},n)})})};function rP(){const[e,t]=w.useState(!1);w.useEffect(()=>{const r={threshold:.1,rootMargin:"0px 0px -50px 0px"},o=new IntersectionObserver(s=>{s.forEach(a=>{a.isIntersecting&&a.target.classList.add("visible")})},r);return document.querySelectorAll(".fade-up").forEach(s=>o.observe(s)),()=>o.disconnect()},[]);const n=r=>{const o=document.getElementById(r);if(o){const s=o.getBoundingClientRect().top+window.pageYOffset+-80;window.scrollTo({top:s,behavior:"smooth"})}};return v.jsxs("div",{className:"min-h-screen relative",children:[v.jsxs(hl,{children:[v.jsx("title",{children:"INDICA+ - Programa de Indicação do Grupo CB Drogarias"}),v.jsx("meta",{name:"description",content:"Transforme suas conexões em renda recorrente. Indique farmácias para o Grupo CB Drogarias e receba até R$1.500 por indicação aprovada."})]}),v.jsx(nP,{}),v.jsx(Tw,{}),v.jsx(uy,{children:e&&v.jsxs(v.Fragment,{children:[v.jsx(eP,{}),v.jsx(tP,{})]})}),v.jsx(zE,{scrollToSection:n}),v.jsxs("main",{className:"pt-24 relative z-10",children:[v.jsx(HE,{scrollToSection:n}),v.jsx(WE,{scrollToSection:n}),v.jsx(GE,{scrollToSection:n}),v.jsx(KE,{scrollToSection:n}),v.jsx(YE,{setFormSubmitted:t}),v.jsx(XE,{}),v.jsx(qE,{scrollToSection:n})]}),v.jsx(ZE,{})]})}va.createRoot(document.getElementById("root")).render(v.jsx(te.StrictMode,{children:v.jsx(rP,{})}));